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

Disassembly:
sub esp, 0x74
mov eax, dword [0x10155004]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
mov ebp, dword [0x10155c08]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 0
push esi
mov esi, ecx
push edi
test ebp, ebp
je 0x1003b2ce
push 0x28a
call ebp
add esp, 4
test eax, eax
je 0x1003b2c8
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 [0x10155c08]
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 0x1003b2f4
add ecx, 4
add edx, 4
sub edi, 4
jae 0x1003b2e1
jmp 0x1003b300
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
inc eax
mov dword [esp + 0x14], eax
xor edi, edi
cmp word [esi + 0x28], di
jne 0x1003b3f1
test ebp, ebp
je 0x1003b33d
push 0x28a
call ebp
add esp, 4
test eax, eax
je 0x1003b33d
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 0x1003b3ad
lea eax, [esp + 0x20]
push eax
push 4
call fcn.10028b10
add esp, 8
cmp byte [esi + 0x2b], 0
jne 0x1003b381
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 0x1003b4f1
or dword [esi + 0x74], 0xf000
mov edx, dword [esp + 0x20]
mov ecx, esi
call fcn.10038e00
cmp byte [esi + 0x2b], 0
jne 0x1003b3cb
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 0x1003b3cb
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 + 0x34]
push ebx
push 1
mov ecx, esi
call fcn.1003a100
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x1003b3d4
mov ebx, dword [esp + 0x2c]
test edi, edi
jne 0x1003b8f3
mov ecx, dword [esi + 0x44]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x1003b515
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 0x1003b441
lea eax, [esi + 0x54]
push eax
push 8
call fcn.10028b10
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.10037e40
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 0x1003b8f3
cmp byte [esi + 0x30], al
je 0x1003b511
mov ecx, dword [esp + 0x94]
mov edx, dword [esi + 8]
sar ecx, 2
and ecx, 3
je 0x1003b50f
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 0x1003b511
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.10115f0d
add esp, 0x74
ret
cmp edi, 5
je 0x1003b3ad
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.10115f0d
add esp, 0x74
ret
xor edi, edi
mov ecx, dword [esp + 0x1c]
cmp dword [esi + 0x24], ebp
je 0x1003b550
push 0x10144edc
push 0x10a90
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10028790
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.10115f0d
add esp, 0x74
ret
mov eax, dword [esi + 8]
xorps xmm0, xmm0
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x48], eax
lea eax, [ebp + 0x18]
mov dword [esp + 0x34], 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 + 0x30], ebp
mov dword [esp + 0x60], eax
call fcn.10128690
mov ecx, dword [esp + 0x90]
add eax, 0x20
mov ebp, edx
mov dword [esp + 0x10], eax
adc ebp, 0
cmp dword [esp + 0x2c], 0
je 0x1003b6c0
cmp dword [esp + 0x14], 0
je 0x1003b659
cmp dword [ebx + 0x10], 0
jne 0x1003b5cc
test ecx, ecx
jne 0x1003b659
mov edx, dword [ebx + 0x18]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.1003a800
mov edi, dword [esp + 0x1c]
add esp, 4
cmp edi, dword [esp + 0x14]
jb 0x1003b64e
push dword [esp + 0x50]
lea eax, [edi - 1]
push dword [esp + 0x24]
push 0
push eax
call fcn.10128690
add eax, 0x38
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x68]
adc edx, 0
test eax, eax
je 0x1003b618
cmp edi, eax
jae 0x1003b61b
mov dword [esi + 0x68], edi
mov eax, dword [esi + 8]
push edx
push dword [esp + 0x1c]
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 0x1003b8f3
mov eax, dword [esp + 0x10]
mov edx, 0xffbf
and word [ebx + 0x1c], dx
jmp 0x1003b6a6
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x90]
inc dword [esp + 0x1c]
test ecx, ecx
je 0x1003b670
cmp dword [ebx + 0x10], 0
jne 0x1003b670
mov ecx, dword [esp + 0x8c]
jmp 0x1003b672
xor ecx, ecx
push ebp
push eax
push ecx
mov edx, ebx
lea ecx, [esp + 0x44]
call fcn.1003af60
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1003b8f3
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x20]
mov dword [esp + 0x30], ebx
adc ebp, dword [esp + 0x50]
or word [ebx + 0x1c], 0x40
mov dword [esp + 0x10], eax
mov ebx, dword [ebx + 0x10]
mov ecx, dword [esp + 0x90]
test ebx, ebx
jne 0x1003b5b3
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x1003b847
cmp dword [esi + 0x68], 0
je 0x1003b6e3
mov edx, dword [esp + 0x1c]
mov ecx, esi
call fcn.1003b040
mov edi, eax
test edi, edi
jne 0x1003b8f3
and dword [esp + 0x94], 3
je 0x1003b7f5
cmp byte [esi + 0x31], 0
je 0x1003b7dd
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x1003b727
push ecx
call eax
add esp, 4
cmp eax, 0x20
jge 0x1003b719
mov eax, 0x200
jmp 0x1003b72c
cmp eax, 0x10000
jle 0x1003b72c
mov eax, 0x10000
jmp 0x1003b72c
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 + 0x24], ecx
call fcn.101285d0
mov ecx, dword [esp + 0x10]
sub ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], ecx
sbb eax, edx
mov dword [esp + 0x44], eax
cmp ecx, ebx
jne 0x1003b779
mov dword [esp + 0x14], 1
cmp eax, ebp
je 0x1003b781
mov dword [esp + 0x14], 0
cmp ebp, eax
jg 0x1003b7d6
jl 0x1003b790
cmp ebx, ecx
jae 0x1003b7d6
nop dword [eax + eax]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x38]
push ebp
push ebx
push dword [esp + 0x94]
call fcn.1003af60
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1003b8f3
mov eax, dword [esp + 0x34]
cdq
add ebx, eax
adc ebp, edx
inc dword [esp + 0x24]
cmp ebp, dword [esp + 0x44]
jl 0x1003b790
jg 0x1003b7ce
cmp ebx, dword [esp + 0x40]
jb 0x1003b790
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], 0
je 0x1003b7f5
mov ecx, dword [esp + 0x18]
push dword [esp + 0x94]
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 0x1003b847
mov ebp, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
test ebp, ebp
jl 0x1003b847
jg 0x1003b80b
test ebx, ebx
jb 0x1003b847
push dword [esp + 0x50]
mov eax, dword [esp + 0x28]
push dword [esp + 0x24]
add eax, dword [esp + 0x24]
push 0
push eax
call fcn.10128690
add eax, 0x20
adc edx, 0
cmp edx, ebp
jl 0x1003b837
jg 0x1003b833
cmp eax, ebx
jbe 0x1003b837
mov ebx, eax
mov ebp, edx
push ebp
push ebx
mov ecx, esi
call fcn.10039680
add esp, 8
mov byte [esi + 0x2f], 0
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esi + 0x44]
test ebp, ebp
je 0x1003b879
test edi, edi
jne 0x1003b8f3
test byte [ebp + 0x1c], 0x40
je 0x1003b872
push dword [ebp + 0x18]
inc ebx
mov ecx, esi
mov edx, ebx
call fcn.10038250
add esp, 4
mov edi, eax
mov ebp, dword [ebp + 0x10]
test ebp, ebp
jne 0x1003b852
test edi, edi
jne 0x1003b8f3
nop dword [eax]
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x1003b8ba
dec eax
inc ebx
mov dword [esp + 0x24], eax
mov edx, ebx
mov eax, dword [esp + 0x30]
mov ecx, esi
push dword [eax + 0x18]
call fcn.10038250
mov edi, eax
add esp, 4
test edi, edi
je 0x1003b880
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.10115f0d
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 0x1003b8f3
mov eax, dword [esp + 0x8c]
mov ecx, esi
inc dword [esi + 0x3c]
mov dword [esi + 0x48], eax
call fcn.10037f90
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.10115f0d
add esp, 0x74
ret