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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x38
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
cmp esi, 0x12
jl 0x1003f3ee
mov edx, dword [esp + 0x54]
cmp eax, edx
je 0x1003f765
mov ecx, esi
mov ebx, 1
shl ebx, cl
mov edx, ebx
shl edx, 3
push edx
mov ebp, dword [esp + 0x58]
push ebp
push eax
call fcn.10082580
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x5c]
lea eax, [eax + 0x8000]
mov edi, dword [edx + 0x24]
mov ecx, ebx
sar ecx, 0xc
lea edx, [edi + ecx*4]
test ecx, ecx
jle 0x1003f44f
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], edi
xor ebp, ebp
mov dword [esp + 0x20], ebp
mov edi, ebp
mov eax, dword [esp + 0x18]
mov ebx, dword [eax + edi*4]
cmp ebp, ebx
jl 0x1003f331
je 0x1003f710
jmp 0x1003f3d2
mov esi, dword [esp + 0x54]
lea eax, [esi + ebp*8]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
sar esi, 6
mov edx, 0x40
push edx
push edx
push esi
mov ecx, dword [esp + 0x68]
push ecx
push eax
call fcn.100825c0
mov eax, dword [esp + 0x40]
push eax
push 0x1000
mov edx, dword [esp + 0x78]
push edx
call fcn.10082660
mov eax, dword [esp + 0x74]
lea ebx, [eax + ebx*8]
mov edx, 0x40
push edx
push edx
push esi
mov ecx, dword [esp + 0x48]
push ecx
push ebx
call fcn.100825c0
mov eax, dword [esp + 0x60]
push eax
push 0x1000
mov edx, dword [esp + 0x58]
push edx
call fcn.10082660
push 0
mov eax, 0x40
push eax
push eax
push esi
mov edx, dword [esp + 0xac]
push edx
push ebx
call fcn.10082850
push 0
mov eax, 0x40
push eax
push eax
push esi
mov edx, dword [esp + 0x84]
push edx
mov ecx, dword [esp + 0x94]
push ecx
call fcn.10082850
add esp, 0x70
mov eax, dword [esp + 0x34]
add edi, 1
add ebp, 0x40
cmp edi, eax
jl 0x1003f31b
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x58]
jmp 0x1003f44f
mov edx, dword [esp + 0x54]
cmp eax, edx
je 0x1003f901
cmp esi, 0x10
jl 0x1003f430
mov ecx, esi
mov ebx, 1
shl ebx, cl
mov edx, ebx
shl edx, 3
push edx
mov ebp, dword [esp + 0x58]
push ebp
push eax
call fcn.10082580
mov eax, dword [esp + 0x4c]
push dword [eax + 0x24]
push ebx
mov edx, dword [esp + 0x5c]
push edx
call fcn.10040ce0
add esp, 0xc
jmp 0x1003f44f
mov edx, dword [esp + 0x4c]
push dword [edx + 0x24]
mov ecx, esi
mov ebx, 1
shl ebx, cl
push ebx
mov ebp, dword [esp + 0x5c]
push ebp
push eax
call fcn.1003dc00
add esp, 0x10
mov eax, dword [esi*4 + 0x100a093c]
test eax, eax
jne 0x1003f565
cmp ebx, 0x4000
mov ecx, ebx
jl 0x1003f46d
mov ecx, 0x4000
test ebx, ebx
jle 0x1003f52f
mov edi, dword [esp + 0x54]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], ebx
xor esi, esi
mov ebx, dword [esp + 0x4c]
lea ebp, [ecx - 0x10000]
lea eax, [edi + esi*8]
mov ecx, ebp
test ebp, ebp
jl 0x1003f4f4
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ebp
lea edx, [eax + ecx*8]
mov dword [esp + 0x20], esi
mov ebp, edx
mov esi, ecx
push 1
push edi
push dword [ebx + 0x28]
push 0x10000
push ebp
call fcn.1003df00
add esp, 0x14
mov eax, dword [ebx + 8]
test eax, eax
je 0x1003f4d6
push 0x20000
push ebp
push dword [ebx + 0x10]
call fcn.100213e0
add ebp, 0xfff80000
add esi, 0xffff0000
jns 0x1003f4ad
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x54]
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x30]
mov ecx, 0x10000
mov dword [esp + 0x14], 0x400
call fcn.1003824c
add esi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
cmp esi, eax
jl 0x1003f48d
mov ecx, dword [esp + 0x30]
mov ebx, eax
cmp ebx, ecx
jle 0x1003f708
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
mov esi, dword [ebp + 0x30]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
mov edx, ebx
mov dword [esp + 0x14], 0x100
call fcn.1003824c
add esp, 0x38
pop ebx
pop ebp
pop esi
pop edi
ret
mov edi, dword [esp + 0x54]
mov ebp, esi
sub ebp, eax
mov ecx, ebp
mov ebx, 1
shl ebx, cl
mov ecx, eax
mov edx, 1
shl edx, cl
cmp ebp, 0x10
jg 0x1003f5d2
test edx, edx
jle 0x1003f61d
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], eax
xor ebp, ebp
push 0
mov eax, dword [esp + 0x60]
push eax
push dword [esi + 0x28]
push ebx
push edi
call fcn.1003df00
add esp, 0x14
mov eax, dword [esi + 8]
test eax, eax
je 0x1003f5c2
lea eax, [ebx + ebx]
push eax
push edi
push dword [esi + 0x10]
call fcn.100213e0
mov eax, dword [esp + 0x2c]
lea edi, [edi + ebx*8]
add ebp, 1
cmp ebp, eax
jl 0x1003f59a
jmp 0x1003f613
test edx, edx
jle 0x1003f61d
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], ebp
xor ecx, ecx
mov dword [esp + 0x34], eax
mov ebp, ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], esi
mov edx, edi
call fcn.1003f924
mov eax, dword [esp + 0x2c]
lea edi, [edi + ebx*8]
add ebp, 1
cmp ebp, eax
jl 0x1003f5ea
mov edx, eax
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esi*4 + 0x100a099c]
mov ebp, dword [ebp + 0x48]
sub ecx, eax
mov edi, 1
shl edi, cl
test ebx, ebx
jle 0x1003f708
mov dword [esp + 0x2c], edx
mov ecx, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
xor esi, esi
and ecx, 1
mov dword [esp + 0x28], ecx
mov ebx, dword [esp + 0x54]
push edi
mov eax, dword [esp + 0x30]
lea ebx, [ebx + esi*8]
push eax
mov edx, dword [esp + 0x38]
push edx
mov ecx, dword [esp + 0x68]
push ecx
push ebx
call fcn.100825c0
add esp, 0x14
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov edx, edi
cmp ecx, 2
jl 0x1003f6d3
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
mov esi, edx
mov ecx, 2
mov ebx, ecx
mov dword [esp + 0x20], edi
mov edi, ebp
mov ebp, eax
push edi
sar ebp, 2
push ebp
push esi
mov eax, dword [esp + 0x68]
push eax
push eax
call fcn.100829d0
add esp, 0x14
lea eax, [esi + esi*2]
lea edi, [edi + eax*8]
mov eax, dword [esp + 0x34]
shl esi, 2
add ebx, 2
cmp ebx, eax
jle 0x1003f69b
mov ebx, dword [esp + 0x18]
mov edx, esi
mov esi, dword [esp + 0x1c]
mov ebp, edi
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x1003f8de
push 1
push edi
mov eax, dword [esp + 0x34]
push eax
mov edx, dword [esp + 0x3c]
push edx
mov ecx, dword [esp + 0x6c]
push ecx
push ebx
call fcn.10082850
add esp, 0x18
mov eax, dword [esp + 0x30]
add esi, edi
cmp esi, eax
jl 0x1003f653
add esp, 0x38
pop ebx
pop ebp
pop esi
pop edi
ret
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x24]
lea esi, [esi + ebp*8]
sar ebx, 6
mov eax, 0x40
push eax
push eax
push ebx
mov edx, dword [esp + 0x68]
push edx
push esi
call fcn.100825c0
mov eax, dword [esp + 0x40]
push eax
push 0x1000
mov edx, dword [esp + 0x78]
push edx
call fcn.10082660
push 0
mov eax, 0x40
push eax
push eax
push ebx
mov edx, dword [esp + 0x8c]
push edx
push esi
call fcn.10082850
add esp, 0x38
jmp 0x1003f3d2
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x5c]
lea eax, [eax + 0x8000]
mov ebp, dword [edx + 0x24]
mov ecx, esi
mov ebx, 1
shl ebx, cl
mov ecx, ebx
sar ecx, 0xc
lea edx, [ebp + ecx*4]
test ecx, ecx
jle 0x1003f44f
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebx
xor edi, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], edi
mov esi, edi
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax + edi*4]
cmp esi, ebx
jl 0x1003f7ca
je 0x1003f88b
jmp 0x1003f86c
mov ebp, dword [esp + 0x54]
lea eax, [ebp + esi*8]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x34], eax
sar ebp, 6
mov edx, 0x40
push edx
push edx
push ebp
mov ecx, dword [esp + 0x68]
push ecx
push eax
call fcn.100825c0
mov eax, dword [esp + 0x3c]
push eax
push 0x1000
mov edx, dword [esp + 0x78]
push edx
call fcn.10082660
mov eax, dword [esp + 0x74]
lea ebx, [eax + ebx*8]
mov edx, 0x40
push edx
push edx
push ebp
mov ecx, dword [esp + 0x48]
push ecx
push ebx
call fcn.100825c0
mov eax, dword [esp + 0x5c]
push eax
push 0x1000
mov edx, dword [esp + 0x58]
push edx
call fcn.10082660
push 0
mov eax, 0x40
push eax
push eax
push ebp
mov edx, dword [esp + 0xac]
push edx
push ebx
call fcn.10082850
push 0
mov eax, 0x40
push eax
push eax
push ebp
mov edx, dword [esp + 0x84]
push edx
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.10082850
add esp, 0x70
mov eax, dword [esp + 0x18]
add edi, 1
add esi, 0x40
cmp edi, eax
jl 0x1003f7b4
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x58]
jmp 0x1003f44f
mov ebp, dword [esp + 0x54]
mov ebx, dword [esp + 0x24]
lea ebp, [ebp + esi*8]
sar ebx, 6
mov eax, 0x40
push eax
push eax
push ebx
mov edx, dword [esp + 0x68]
push edx
push ebp
call fcn.100825c0
mov eax, dword [esp + 0x3c]
push eax
push 0x1000
mov edx, dword [esp + 0x78]
push edx
call fcn.10082660
push 0
mov eax, 0x40
push eax
push eax
push ebx
mov edx, dword [esp + 0x8c]
push edx
push ebp
call fcn.10082850
add esp, 0x38
jmp 0x1003f86c
push ebp
push 1
push edx
mov eax, dword [esp + 0x68]
push eax
push eax
mov dword [esp + 0x38], edx
call fcn.10082b00
mov edx, dword [esp + 0x38]
add esp, 0x14
lea ebp, [ebp + edx*8]
jmp 0x1003f6df
mov eax, dword [esp + 0x4c]
push dword [eax + 0x24]
mov ecx, esi
mov ebx, 1
shl ebx, cl
push ebx
mov edx, dword [esp + 0x5c]
push edx
call fcn.10040ce0
add esp, 0xc
jmp 0x1003f44f