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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x3c]
cmp eax, dword [ecx + 8]
jbe 0x584bf2
sub esp, 0xbc
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x584bd5
lea ecx, [0x6d6a40]
mov dword [esp], ecx
call fcn.0040cd70
mov eax, dword [esp + 4]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0xc0]
mov edx, dword [ecx]
lea ebx, [0x6b4960]
mov dword [esp], ebx
mov dword [esp + 4], 0
mov dword [esp + 8], edx
call fcn.00437440
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x70], edx
lea edi, [esp + 0x8c]
xor eax, eax
call fcn.0044a374
lea eax, [0x6e51c0]
mov dword [esp], eax
mov ecx, dword [esp + 0xc0]
mov dword [esp + 4], ecx
lea ebp, [esp + 0x8c]
mov dword [esp + 8], ebp
call fcn.00407550
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x84], ecx
mov ebx, dword [esp + 0x8c]
test ebx, ebx
je 0x5849c9
mov ebp, dword [ebx + 4]
mov dword [esp + 0x38], ebp
mov ebx, dword [ebx]
mov dword [esp + 0x78], ebx
lea esi, [eax + 1]
cmp esi, edx
jg 0x58498b
mov dword [esp + 0x70], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edx
mov edi, eax
shl eax, 3
mov dword [ecx + eax + 4], ebp
lea ebp, [ecx + edi*8]
mov edi, dword [0x884700]
test edi, edi
jne 0x584971
mov dword [ecx + eax], ebx
lea eax, [esp + 0x8c]
mov dword [esp], eax
call fcn.00407a40
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x30]
jmp 0x584901
mov dword [esp], ebp
mov dword [esp + 4], ebx
call fcn.0040d5a0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
jmp 0x584954
lea edi, [0x6b4960]
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], esi
call fcn.00437660
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea esi, [eax + 1]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x38]
jmp 0x58492f
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004d31a0
xor eax, eax
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x40], eax
mov dword [esp + 0x80], ecx
mov edx, dword [esp + 0x2c]
cmp eax, edx
jge 0x584b61
mov ebx, dword [ecx + 4]
mov dword [esp + 0x34], ebx
mov ebp, dword [ecx]
mov dword [esp + 0x74], ebp
lea esi, [0x6e51c0]
mov dword [esp], esi
mov edi, dword [esp + 0xc0]
mov dword [esp + 4], edi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
call fcn.00409500
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov eax, dword [eax]
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x74]
mov dword [esp], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 4], edx
call fcn.005823e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x44]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
lea eax, [0x704017]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.0043a840
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x6c], ecx
xor edx, edx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x7c], ebx
mov ebp, dword [esp + 0x20]
cmp edx, ebp
jge 0x584b4b
mov esi, dword [ebx + 4]
mov dword [esp + 0x24], esi
mov edi, dword [ebx]
mov dword [esp + 0x68], edi
mov ebp, dword [esp + 0x88]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 4]
sub ebx, edx
test ebx, ebx
jg 0x584b22
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004b15d0
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.005823e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x88]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004b15d0
mov eax, dword [esp + 0x7c]
lea ebx, [eax + 8]
mov eax, dword [esp + 0x3c]
lea edx, [eax + 1]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x6c]
jmp 0x584a90
mov dword [esp], ebp
mov byte [esp + 4], 0x26
call fcn.004b1b10
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x88]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x68]
jmp 0x584ac4
mov edx, dword [esp + 0x80]
lea ecx, [edx + 8]
mov edx, dword [esp + 0x40]
lea eax, [edx + 1]
jmp 0x5849e2
mov eax, dword [esp + 0x88]
test eax, eax
je 0x584bc8
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
cmp ecx, ebx
ja 0x584bc1
mov dword [esp], 0
sub eax, ecx
lea ebp, [eax - 1]
sar ebp, 0x1f
xor ebp, 0xffffffff
and ebp, ecx
add edx, ebp
mov dword [esp + 4], edx
sub ebx, ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call fcn.0043a9c0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ecx
add esp, 0xbc
ret
call fcn.004246e0
ud2
lea eax, [0x704c34]
mov ecx, 5
jmp 0x584bac
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
add esp, 0xbc
ret
call fcn.004486b0
jmp fcn.00584840