Function at 0x1003f2f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
mov ebp, dword [0x10178b38]
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
push esi
mov esi, ecx
push edi
test ebp, ebp
je 0x1003f36e
push 0x28a
call ebp
add esp, 4
test eax, eax
je 0x1003f368
mov dword [esp + 0x58], eax
lea eax, [esp + 0x50]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ebp, dword [0x10178b38]
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0x34]
mov edi, 0x2c
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x20], eax
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1003f394
add ecx, 4
add edx, 4
sub edi, 4
jae 0x1003f381
jmp 0x1003f3a0
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
inc eax
mov dword [esp + 0x1c], eax
xor edi, edi
cmp word [esi + 0x28], di
jne 0x1003f491
test ebp, ebp
je 0x1003f3dd
push 0x28a
call ebp
add esp, 4
test eax, eax
je 0x1003f3dd
mov dword [esp + 0x58], eax
lea eax, [esp + 0x50]
push eax
push 3
push edi
push 0xc0000006
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
cmp dword [eax + 0x60], edi
jbe 0x1003f44d
lea eax, [esp + 0x20]
push eax
push 4
call fcn.1002ae90
add esp, 8
cmp byte [esi + 0x2b], 0
jne 0x1003f421
mov eax, dword [esi + 4]
push 0xa
push 4
push 4
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1003f591
or dword [esi + 0x74], 0xf000
mov edx, dword [esp + 0x20]
mov ecx, esi
call fcn.1003cd80
cmp byte [esi + 0x2b], 0
jne 0x1003f46b
mov eax, dword [esi + 4]
push 9
push 4
push 4
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
and dword [esi + 0x74], 0xffff0fff
cmp byte [esi + 0x2b], 0
jne 0x1003f46b
mov eax, dword [esi + 4]
push 5
push 1
push 3
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
and dword [esi + 0x74], 0xfffffff7
or eax, 0xffffffff
xor ebx, ebx
mov word [esi + 0x28], ax
inc ebx
lea edx, [esp + 0x2c]
push ebx
push 1
mov ecx, esi
call fcn.1003e190
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x1003f474
mov ebx, dword [esp + 0x30]
test edi, edi
jne 0x1003f9a6
mov ecx, dword [esi + 0x44]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x1003f5b5
mov ecx, dword [esi + 0x70]
mov eax, ebp
mov dword [esp + 0x5c], 0x82067f37
mov dword [esp + 0x60], 0x18e22d00
bswap eax
mov dword [esp + 0x64], eax
mov eax, ecx
bswap eax
mov dword [esp + 0x68], eax
test ecx, ecx
jne 0x1003f4e1
lea eax, [esi + 0x54]
push eax
push 8
call fcn.1002ae90
add esp, 8
mov eax, dword [esi + 0x54]
lea edx, [esp + 0x5c]
mov ecx, dword [esi + 0x58]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x74], ecx
mov ecx, 1
push 0
push 0x18
call fcn.1003bbe0
mov edx, dword [esp + 0x5c]
add esp, 0xc
mov ecx, dword [esp + 0x54]
mov eax, edx
bswap eax
mov dword [esp + 0x74], eax
mov eax, ecx
bswap eax
mov dword [esi + 0x24], ebp
mov dword [esi + 0x4c], edx
lea edx, [esp + 0x5c]
mov dword [esi + 0x50], ecx
mov dword [esp + 0x78], eax
mov eax, dword [esi + 8]
push 0
push 0
mov byte [esi + 0x41], 0
mov byte [esi + 0x2f], 1
mov ecx, dword [eax]
push 0x20
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1003f9a6
cmp byte [esi + 0x30], al
je 0x1003f5b1
mov ecx, dword [esp + 0x94]
mov edx, dword [esi + 8]
sar ecx, 2
and ecx, 3
je 0x1003f5af
mov eax, dword [edx]
push ecx
push edx
mov eax, dword [eax + 0x14]
call eax
mov edi, eax
add esp, 8
test edi, edi
je 0x1003f5b1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.1013942d
add esp, 0x74
ret
cmp edi, 5
je 0x1003f44d
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.1013942d
add esp, 0x74
ret
xor edi, edi
mov ecx, dword [esp + 0x18]
cmp dword [esi + 0x24], ebp
je 0x1003f5f0
push 0x10167d54
push 0x10a90
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1002a9f0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.1013942d
add esp, 0x74
ret
mov eax, dword [esi + 8]
xorps xmm0, xmm0
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x48], eax
lea eax, [ebp + 0x18]
mov dword [esp + 0x20], eax
cdq
mov dword [esp + 0x4c], ebp
mov ebp, eax
mov eax, edx
mov dword [esp + 0x38], esi
push eax
push ebp
push 0
push ecx
movlpd qword [esp + 0x50], xmm0
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x60], eax
call fcn.1014b520
mov ecx, eax
mov ebp, edx
mov eax, dword [esp + 0x90]
add ecx, 0x20
mov dword [esp + 0x10], ecx
adc ebp, 0
cmp dword [esp + 0x30], 0
je 0x1003f76b
cmp dword [esp + 0x1c], 0
je 0x1003f6fb
cmp dword [ebx + 0x10], 0
jne 0x1003f66e
test eax, eax
jne 0x1003f6fb
mov edx, dword [ebx + 0x18]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.1003e890
mov edi, dword [esp + 0x18]
add esp, 4
cmp edi, dword [esp + 0x1c]
jb 0x1003f6f0
push dword [esp + 0x50]
lea eax, [edi - 1]
push dword [esp + 0x30]
push 0
push eax
call fcn.1014b520
add eax, 0x38
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x68]
adc edx, 0
test eax, eax
je 0x1003f6ba
cmp edi, eax
jae 0x1003f6bd
mov dword [esi + 0x68], edi
mov eax, dword [esi + 8]
push edx
push dword [esp + 0x18]
push dword [esp + 0x30]
mov ecx, dword [eax]
push dword [ebx + 4]
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1003f9a6
mov ecx, dword [esp + 0x10]
mov edx, 0xffbf
and word [ebx + 0x1c], dx
jmp 0x1003f749
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x90]
inc dword [esp + 0x18]
test eax, eax
je 0x1003f712
cmp dword [ebx + 0x10], 0
jne 0x1003f712
mov eax, dword [esp + 0x8c]
jmp 0x1003f714
xor eax, eax
push ebp
push ecx
push eax
mov edx, ebx
lea ecx, [esp + 0x44]
call fcn.1003f000
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1003f9a6
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
cdq
add ecx, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x10], ecx
adc ebp, edx
or word [ebx + 0x1c], 0x40
mov ebx, dword [ebx + 0x10]
test ebx, ebx
je 0x1003f75c
mov eax, dword [esp + 0x90]
jmp 0x1003f655
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x90]
test eax, eax
je 0x1003f8fd
cmp dword [esi + 0x68], 0
je 0x1003f78e
mov edx, dword [esp + 0x18]
mov ecx, esi
call fcn.1003f0e0
mov edi, eax
test edi, edi
jne 0x1003f9a6
mov edx, dword [esp + 0x94]
test dl, 3
je 0x1003f8a9
cmp byte [esi + 0x31], 0
je 0x1003f894
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x1003f7d4
push ecx
call eax
add esp, 4
cmp eax, 0x20
jge 0x1003f7c6
mov eax, 0x200
jmp 0x1003f7d9
cmp eax, 0x10000
jle 0x1003f7d9
mov eax, 0x10000
jmp 0x1003f7d9
mov eax, 0x1000
mov ebx, dword [esp + 0x10]
cdq
mov ecx, eax
add ecx, ebx
mov dword [esp + 0x10], ecx
mov ecx, edx
adc ecx, ebp
sub dword [esp + 0x10], 1
push edx
sbb ecx, 0
push eax
push ecx
push dword [esp + 0x1c]
mov dword [esp + 0x3c], ecx
call fcn.1014b460
mov ecx, dword [esp + 0x10]
sub ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x40], ecx
sbb eax, edx
mov dword [esp + 0x44], eax
cmp ecx, ebx
jne 0x1003f826
mov dword [esp + 0x1c], 1
cmp eax, ebp
je 0x1003f82e
mov dword [esp + 0x1c], 0
cmp ebp, eax
jg 0x1003f886
jl 0x1003f840
cmp ebx, ecx
jae 0x1003f886
nop dword [eax + eax]
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x38]
push ebp
push ebx
push dword [esp + 0x94]
call fcn.1003f000
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1003f9a6
mov eax, dword [esp + 0x20]
cdq
add ebx, eax
adc ebp, edx
inc dword [esp + 0x24]
cmp ebp, dword [esp + 0x44]
jl 0x1003f840
jg 0x1003f87e
cmp ebx, dword [esp + 0x40]
jb 0x1003f840
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x1c], 0
je 0x1003f8a9
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x14]
and edx, 3
push edx
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
add esp, 8
mov edi, eax
cmp byte [esi + 0x2f], 0
je 0x1003f8fd
mov ebp, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
test ebp, ebp
jl 0x1003f8fd
jg 0x1003f8bf
test ebx, ebx
jb 0x1003f8fd
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
add eax, 0x18
add ecx, dword [esp + 0x24]
cdq
push edx
push eax
push 0
push ecx
call fcn.1014b520
add eax, 0x20
adc edx, 0
cmp edx, ebp
jl 0x1003f8ed
jg 0x1003f8e9
cmp eax, ebx
jbe 0x1003f8ed
mov ebx, eax
mov ebp, edx
push ebp
push ebx
mov ecx, esi
call fcn.1003d660
add esp, 8
mov byte [esi + 0x2f], 0
mov ebp, dword [esp + 0x30]
mov ebx, dword [esi + 0x44]
test ebp, ebp
je 0x1003f92f
test edi, edi
jne 0x1003f9a6
test byte [ebp + 0x1c], 0x40
je 0x1003f928
push dword [ebp + 0x18]
inc ebx
mov ecx, esi
mov edx, ebx
call fcn.1003bfa0
add esp, 4
mov edi, eax
mov ebp, dword [ebp + 0x10]
test ebp, ebp
jne 0x1003f908
test edi, edi
jne 0x1003f9a6
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x1003f96d
dec eax
inc ebx
mov dword [esp + 0x24], eax
mov edx, ebx
mov eax, dword [esp + 0x34]
mov ecx, esi
push dword [eax + 0x18]
call fcn.1003bfa0
mov edi, eax
add esp, 4
test edi, edi
je 0x1003f933
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.1013942d
add esp, 0x74
ret
mov ecx, dword [esp + 0x28]
mov eax, ecx
sar eax, 0x10
and ecx, 0xff00
or eax, ecx
mov dword [esi + 0x44], ebx
cmp dword [esp + 0x90], 0
mov word [esi + 0x42], ax
je 0x1003f9a6
mov eax, dword [esp + 0x8c]
mov ecx, esi
inc dword [esi + 0x3c]
mov dword [esi + 0x48], eax
call fcn.1003bcf0
mov dword [esi + 0xc], ebx
mov ecx, dword [esp + 0x7c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1013942d
add esp, 0x74
ret