Function at 0x1006ca90
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 0x1006cbde
mov edx, dword [esp + 0x54]
cmp eax, edx
je 0x1006cf55
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 0x1006cc3f
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 0x1006cb21
je 0x1006cf00
jmp 0x1006cbc2
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 0x1006cb0b
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x58]
jmp 0x1006cc3f
mov edx, dword [esp + 0x54]
cmp eax, edx
je 0x1006d0f1
cmp esi, 0x10
jl 0x1006cc20
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 0x1006cc3f
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 + 0x100a177c]
test eax, eax
jne 0x1006cd55
cmp ebx, 0x4000
mov ecx, ebx
jl 0x1006cc5d
mov ecx, 0x4000
test ebx, ebx
jle 0x1006cd1f
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 0x1006cce4
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.1006b6f0
add esp, 0x14
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1006ccc6
push 0x20000
push ebp
push dword [ebx + 0x10]
call fcn.100213e0
add ebp, 0xfff80000
add esi, 0xffff0000
jns 0x1006cc9d
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], 0
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x30]
mov ecx, 0x10000
mov dword [esp + 0x14], 0x400
call fcn.1007b340
add esi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
cmp esi, eax
jl 0x1006cc7d
mov ecx, dword [esp + 0x30]
mov ebx, eax
cmp ebx, ecx
jle 0x1006cef8
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
mov esi, dword [ebp + 0x30]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov edx, ebx
mov dword [esp + 0x14], 0x100
call fcn.1007b340
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 0x1006cdc2
test edx, edx
jle 0x1006ce0d
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.1006b6f0
add esp, 0x14
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1006cdb2
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 0x1006cd8a
jmp 0x1006ce03
test edx, edx
jle 0x1006ce0d
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.1006d114
mov eax, dword [esp + 0x2c]
lea edi, [edi + ebx*8]
add ebp, 1
cmp ebp, eax
jl 0x1006cdda
mov edx, eax
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esi*4 + 0x100a17dc]
mov ebp, dword [ebp + 0x48]
sub ecx, eax
mov edi, 1
shl edi, cl
test ebx, ebx
jle 0x1006cef8
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 0x1006cec3
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.10083610
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 0x1006ce8b
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 0x1006d0ce
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 0x1006ce43
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 0x1006cbc2
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 0x1006cc3f
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 0x1006cfba
je 0x1006d07b
jmp 0x1006d05c
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 0x1006cfa4
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x58]
jmp 0x1006cc3f
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 0x1006d05c
push ebp
push 1
push edx
mov eax, dword [esp + 0x68]
push eax
push eax
mov dword [esp + 0x38], edx
call fcn.10083740
mov edx, dword [esp + 0x38]
add esp, 0x14
lea ebp, [ebp + edx*8]
jmp 0x1006cecf
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 0x1006cc3f