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

Disassembly:
sub esp, 0x378
mov eax, dword [0x214f450]
xor eax, esp
mov dword [esp + 0x374], eax
mov eax, dword [esp + 0x384]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edi, edx
push edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], eax
call ecx
mov ecx, dword [esi]
add esp, 4
push edi
mov edi, dword [esp + 0x390]
push 0x100
mov ebp, eax
mov eax, dword [esp + 0x398]
lea edx, [esp + 0x288]
push edx
push eax
push edi
mov dword [esp + 0x44], ebp
call ecx
mov esi, eax
xor ebx, ebx
add esp, 0x14
cmp esi, ebx
mov dword [esp + 0x1c], esi
jge 0x10065946
xor eax, eax
jmp 0x10065ca7
cmp esi, 0xb
jle 0x1006599d
cmp byte [esp + 0x285], 0xff
jne 0x1006599d
cmp byte [esp + 0x286], 0x15
jne 0x1006599d
mov ecx, dword [ebp + 0xc4]
mov eax, dword [esp + 0x287]
cmp eax, ecx
jbe 0x1006599d
xor edx, edx
cmp edx, dword [esp + 0x390]
jb 0x1006599d
ja 0x10065981
cmp eax, edi
jbe 0x1006599d
mov edx, dword [ebp + 0xe0]
add edx, ecx
cmp eax, edx
jae 0x1006599d
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov eax, 1
jmp 0x10065ca7
push 0x244
lea edx, [esp + 0x3c]
push ebx
push edx
call fcn.10084130
add esp, 0xc
mov byte [esp + 0xbc], 0x10
mov dword [esp + 0xca], ebx
mov dword [esp + 0xbd], ebx
mov dword [esp + 0xc1], ebx
call fcn.10072f74
mov dword [esp + 0x3e], eax
mov dword [esp + 0x38], 0x2092b70
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x4b], bl
mov byte [esp + 0xbc], 0x20
lea eax, [esp + 0x280]
mov dword [esp + 0x14], ebx
mov ebp, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 1
jmp 0x10065a20
cmp dword [esp + 0x14], 0x40
jae 0x10065c9d
mov ecx, ebp
sub ecx, edi
add ecx, eax
add ecx, esi
lea esi, [esp + 0x38]
mov dword [esp + 0xbd], edi
mov dword [esp + 0xc1], ebx
mov dword [esp + 0x38], 0x2092b50
mov dword [esp + 0x43], eax
mov dword [esp + 0x47], ecx
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x4b], bl
mov byte [esp + 0x58], bl
mov byte [esp + 0x78], bl
call fcn.10003680
test eax, eax
je 0x10065c9d
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x10065a8a
mov edx, esi
push edx
call eax
add esp, 4
movzx esi, byte [esp + 0x42]
cmp esi, ebx
je 0x10065c9d
mov eax, dword [esp + 0xca]
cmp eax, 0x119
jg 0x10065b87
je 0x10065ba2
add eax, 0xffffffe2
cmp eax, 0xd4
ja 0x10065c0a
movzx eax, byte [eax + 0x20f50d0]
jmp dword [eax*4 + 0x20f50c0]
cmp eax, 0x1a2
je 0x10065bab
cmp eax, 0x1b4
jle 0x10065c0a
cmp eax, 0x1b6
jg 0x10065c0a
mov dword [esp + 0x10], ebx
jmp 0x10065c0c
lea eax, [esp + 0xe5]
jmp 0x10065bb2
lea eax, [esp + 0xce]
cmp dword [eax], 0x8d
jne 0x10065c0a
cmp byte [eax + 4], 0x20
jne 0x10065c0a
cmp dword [eax + 0xd], ebx
jne 0x10065c0a
mov edx, dword [esp + 0x30]
mov eax, dword [eax + 5]
mov ecx, dword [edx + 0xc4]
cmp eax, ecx
jbe 0x10065c0a
xor edx, edx
cmp edx, dword [esp + 0x390]
ja 0x10065c0a
jb 0x10065bec
cmp eax, dword [esp + 0x38c]
jae 0x10065c0a
mov edx, dword [esp + 0x30]
mov edx, dword [edx + 0xe0]
add edx, ecx
cmp eax, edx
jae 0x10065c0a
mov ecx, dword [esp + 0x28]
inc dword [esp + 0x18]
mov dword [ecx], eax
mov dword [esp + 0x10], ebx
add edi, esi
inc dword [esp + 0x14]
cmp edi, ebp
jb 0x10065c2d
mov edx, dword [esp + 0x1c]
lea eax, [edx + ebp - 0xf]
cmp edi, eax
jae 0x10065c2d
mov ecx, edi
sub ecx, ebp
lea eax, [esp + ecx + 0x280]
jmp 0x10065c8e
mov edx, dword [esp + 0x390]
mov eax, dword [esp + 0x38c]
mov ecx, dword [esp + 0x34]
xor esi, esi
push esi
push edi
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [edx + 0xc]
push ecx
call eax
add esp, 0x14
test eax, eax
je 0x1006593f
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [eax]
push 0x100
lea edx, [esp + 0x288]
push edx
push esi
push edi
mov ebp, edi
call ecx
add esp, 0x14
cmp eax, ebx
mov dword [esp + 0x1c], eax
jg 0x10065c87
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x280]
cmp dword [esp + 0x10], ebx
je 0x10065c9d
mov esi, dword [esp + 0x1c]
jmp 0x10065a20
xor eax, eax
cmp dword [esp + 0x18], 1
sete al
mov ecx, dword [esp + 0x384]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10072850
add esp, 0x378
ret