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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, dword [esi + 0xb0]
mov ecx, dword [esi + 0x8c]
xor edx, edx
push edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esi + 4], edx
mov ebp, dword [ebx + 0x218]
mov edi, eax
mov eax, dword [esi + 0x88]
mov dword [esp + 0x20], ebx
mov byte [esp + 0x12], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
cmp dword [esi + 0xb4], ebp
je 0x1006d294
mov dword [esi + 0xb4], ebp
mov byte [esp + 0x12], 1
cmp byte [esi + 8], dl
jne 0x1006d355
mov ecx, dword [ebx + 0x214]
mov eax, dword [esi + 0x224]
mov dword [esp + 0x14], eax
cmp dword [ecx + 0xc28], edx
je 0x1006d355
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x224]
push edx
lea edx, [esp + 0x20]
push edx
push 0
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
add esp, 0x14
mov dword [esi + 4], eax
test eax, eax
jne 0x1006d59a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0x224]
push ecx
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edx + 0xc]
lea ecx, [ebp + 0x22c]
push ecx
call eax
add esp, 0x10
test al, al
je 0x1006d32e
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x214]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [ecx + 4]
push ebp
push eax
call edx
add esp, 0x10
mov byte [esp + 0x12], 1
mov eax, dword [ebp + 0x230]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x1c]
mov byte [esi + 0x5d], 0
mov ecx, dword [ebp + 0x224]
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x80], eax
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 0x58]
movzx eax, word [edx + 0xe]
shl eax, 0x10
cmp dword [esi + 0x58], eax
je 0x1006d36f
mov dword [esi + 0x58], eax
mov byte [esp + 0x12], 1
mov al, byte [esi + 0xc]
and al, 1
mov byte [esi + 0xb8], al
lea eax, [esi + 0x10]
mov ebp, edi
mov edx, 0x10
mov ecx, eax
sub ebp, eax
mov ebx, dword [ecx + ebp]
cmp ebx, dword [ecx]
jne 0x1006d3a2
sub edx, 4
add ecx, 4
cmp edx, 4
jae 0x1006d388
mov al, byte [esp + 0x12]
xor ecx, ecx
jmp 0x1006d402
mov ecx, dword [edi]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [eax + 0xc], edx
mov ecx, dword [edi + 0x10]
mov dword [eax + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [eax + 0x14], edx
xor ecx, ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x20], ecx
mov eax, dword [edi]
mov dword [esi + 0x28], eax
mov edx, dword [edi + 4]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov edx, dword [edi + 0xc]
mov dword [esi + 0x34], edx
mov eax, dword [edi + 0x10]
mov dword [esi + 0x38], eax
mov edx, dword [edi + 0x14]
mov eax, 0x10000
mov dword [esi + 0x4c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], edx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x44], ecx
mov al, 1
mov edx, dword [esi + 0xc]
and edx, 2
cmp byte [esi + 0xba], dl
je 0x1006d41d
mov al, byte [esi + 0xc]
and al, 2
mov byte [esi + 0xba], al
jmp 0x1006d425
test al, al
je 0x1006d59a
mov edi, dword [esi + 0x84]
cmp edi, ecx
jne 0x1006d434
mov edi, 0x3e8
mov eax, dword [esi + 0x58]
cmp eax, 0x40000
mov dword [esp + 0x14], 0x40000
jl 0x1006d44a
mov dword [esp + 0x14], eax
mov eax, 0x3e80000
cdq
idiv edi
mov ebp, eax
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x218]
mov eax, dword [edx + 0x190]
shl eax, 0x10
cmp eax, ecx
mov dword [esi + 0xdc], eax
jg 0x1006d485
push ebp
push 0x4b0000
call fcn.1004c6d0
add esp, 8
mov dword [esi + 0xdc], eax
mov ebx, dword [esp + 0x24]
test ebx, ebx
jle 0x1006d4d5
mov eax, dword [esp + 0x14]
push eax
shl edi, 0x10
push edi
call fcn.1004c6d0
add esp, 8
cmp ebx, eax
jg 0x1006d4b2
mov ecx, dword [esp + 0x14]
push ecx
push edi
call fcn.1004c6d0
add esp, 8
mov ebx, eax
lea edi, [esi + 0xe4]
mov dword [edi], 0
test ebx, ebx
je 0x1006d4ff
cmp ebp, 0x28f
jl 0x1006d4ff
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [edi], eax
jmp 0x1006d4ff
mov edx, dword [esi + 0xdc]
mov ecx, dword [esp + 0x14]
push 0
lea edi, [esi + 0xe4]
push edi
push edx
mov dl, byte [esi + 0xba]
push ecx
lea eax, [esi + 0xbc]
push ebp
call fcn.1006a770
add esp, 0x14
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x218]
mov eax, dword [eax + 0x18c]
shl eax, 0x10
test eax, eax
jle 0x1006d529
lea ecx, [eax + eax]
cmp dword [esi + 0xdc], ecx
jle 0x1006d529
push ebp
push 0x4b0000
jmp 0x1006d52f
push ebp
push 0x6e0000
call fcn.1004c6d0
mov edx, dword [esp + 0x30]
add esp, 8
push edx
mov edx, dword [esp + 0x18]
mov dword [esi + 0xe0], eax
mov ecx, dword [esi + 0xe0]
lea ebx, [esi + 0xe8]
push ebx
push ecx
push edx
mov dl, byte [esi + 0xba]
lea eax, [esi + 0xbc]
push ebp
call fcn.1006a770
add esp, 0x14
cmp dword [edi], 0
jne 0x1006d57d
cmp dword [ebx], 0
jne 0x1006d57d
mov byte [esi + 0xb9], 0
jmp 0x1006d584
mov byte [esi + 0xb9], 1
mov byte [esi + 0xec], 0
push esi
add esi, 0xf0
call fcn.1006cb90
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret