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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
lea eax, [esp + 0x2c]
push edi
mov ebp, 1
push eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
call fcn.065843b0
lea ecx, [esp + 0x40]
push ecx
call fcn.065843b0
lea edx, [esp + 0x5c]
push edx
call fcn.065843b0
lea eax, [esp + 0x54]
push eax
call fcn.065843b0
lea ecx, [esp + 0x34]
push ecx
call fcn.065843b0
mov edi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x78]
push edi
push ebx
call fcn.06583e30
add esp, 0x1c
test eax, eax
jl 0x658496a
lea edx, [esp + 0x30]
push edx
push ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
call fcn.06583de0
mov esi, eax
add esp, 8
test esi, esi
jne 0x6584cd9
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.06583de0
mov esi, eax
add esp, 8
test esi, esi
jne 0x6584cd9
mov dword [esp + 0x20], ebp
jmp 0x65849a6
lea ecx, [esp + 0x30]
push ecx
push edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
call fcn.06583de0
mov esi, eax
add esp, 8
test esi, esi
jne 0x6584cd9
lea edx, [esp + 0x3c]
push edx
push ebx
call fcn.06583de0
mov esi, eax
add esp, 8
test esi, esi
jne 0x6584cd9
mov dword [esp + 0x20], eax
lea eax, [esp + 0x54]
push eax
push ebp
call fcn.065844d0
mov edi, dword [esp + 0x78]
mov ebp, dword [esp + 0x74]
mov esi, eax
add esp, 8
test esi, esi
jne 0x6584c9a
mov ecx, dword [esp + 0x5c]
mov ebx, 1
mov dword [esp + 0x58], ebx
mov dword [ecx], ebx
cmp dword [ebp], ebx
jge 0x65849ee
push ebp
push ebx
call fcn.065844d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x6584c9a
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
mov dword [ebp + 4], ebx
mov dword [edx], 0
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
cmp dword [edx + ecx*4 - 4], 0
jne 0x6584a63
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
cmp dword [edx + ecx*4 - 4], 0
jne 0x6584a26
mov esi, 0x10a
jmp 0x6584c9a
mov ecx, dword [esp + 0x74]
push ecx
push eax
call fcn.06583de0
mov esi, eax
add esp, 8
test esi, esi
jne 0x6584c9a
cmp dword [edi], ebx
jge 0x6584a56
push edi
push ebx
call fcn.065844d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x6584c9a
mov edx, dword [edi + 8]
mov dword [edi + 4], ebx
mov dword [edx], ebx
jmp 0x6584c9a
mov ebx, dword [esp + 0x74]
push ebx
push edi
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.06582f60
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x6584c9a
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
cmp dword [eax + edx*4 - 4], esi
jne 0x6584ab0
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x14]
mov dword [edi + 4], 1
mov dword [ecx], 1
push ebx
jmp 0x6584c8f
push ebp
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
push edi
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.06584810
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x6584c9a
lea edx, [esp + 0x30]
push edx
push edi
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.06582f60
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x6584c9a
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
cmp dword [ecx + edx*4 - 4], esi
lea eax, [esi + 1]
je 0x6584bc7
push ebp
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
push edi
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.06584810
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x6584c9a
lea edx, [esp + 0x3c]
push edx
push edi
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.06582f60
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x6584c9a
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
cmp dword [ecx + edx*4 - 4], esi
lea eax, [esi + 2]
je 0x6584bc7
push ebp
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
push edi
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.06584810
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x6584c9a
push ebx
push edi
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.06582f60
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x6584c9a
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
cmp dword [edx + ecx*4 - 4], eax
jne 0x6584ab0
sub eax, 0
je 0x6584bd9
sub eax, 2
jne 0x6584be7
push ebx
lea eax, [esp + 0x34]
push eax
jmp 0x6584bdf
push ebx
lea ecx, [esp + 0x40]
push ecx
call fcn.06583de0
add esp, 8
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x48]
push edx
push eax
push ebp
call fcn.06584680
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x6584c9a
cmp dword [esp + 0x10], eax
jle 0x6584c1c
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x4c]
push ebx
push edx
call fcn.06583f80
jmp 0x6584c2c
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x4c]
push ebx
push ecx
call fcn.06583ea0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x6584c9a
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0x48]
push edx
push edi
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.06582f60
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x6584c9a
cmp dword [esp + 0x10], eax
lea ecx, [esp + 0x24]
push ecx
jle 0x6584c7a
mov edx, dword [esp + 0x1c]
push edi
push edx
call fcn.06583f80
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x6584c9a
push edi
lea eax, [esp + 0x28]
push eax
jmp 0x6584c90
push ebp
push ebx
call fcn.06583f80
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x6584c9a
push ebp
lea edx, [esp + 0x28]
push edx
call fcn.06583de0
add esp, 8
mov esi, eax
cmp dword [esp + 0x20], 0
jne 0x6584cd9
test esi, esi
jne 0x6584cd9
lea eax, [esp + 0x48]
push eax
push ebp
call fcn.06583de0
mov esi, eax
add esp, 8
test esi, esi
jne 0x6584cd9
push ebp
push edi
call fcn.06583de0
mov esi, eax
add esp, 8
test esi, esi
jne 0x6584cd9
lea ecx, [esp + 0x48]
push edi
push ecx
call fcn.06583de0
add esp, 8
mov esi, eax
lea edx, [esp + 0x30]
push edx
call fcn.065843c0
lea eax, [esp + 0x40]
push eax
call fcn.065843c0
lea ecx, [esp + 0x5c]
push ecx
call fcn.065843c0
lea edx, [esp + 0x54]
push edx
call fcn.065843c0
lea eax, [esp + 0x34]
push eax
call fcn.065843c0
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret