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

Disassembly:
mov ecx, dword [0x8cbf38]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x34]
cmp eax, dword [ecx + 8]
jbe 0x580c4c
sub esp, 0xb4
lea edi, [esp + 0x64]
xor eax, eax
call fcn.0046c0bb
mov ecx, dword [esp + 0xb8]
jmp 0x58026b
mov ecx, dword [esp + 0xb8]
xor eax, eax
test byte [ecx], al
lea edi, [esp + 0x8c]
mov esi, ecx
call fcn.0046c59e
mov ecx, dword [esp + 0x98]
cmp dword [esp + 0x9c], ecx
jle 0x5809ab
mov edx, dword [esp + 0xb8]
mov ecx, dword [edx + 4]
mov ebx, dword [edx + 0xc]
nop
cmp ecx, ebx
jbe 0x580c44
mov eax, dword [edx]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x3c], eax
lea ecx, [ebx + 1]
mov dword [edx + 0xc], ecx
mov dword [esp], eax
call fcn.00478d00
movzx eax, byte [esp + 4]
test al, al
jne 0x580262
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.00581140
movzx eax, byte [esp + 4]
test al, al
jne 0x580828
mov eax, dword [esp + 0x3c]
cmp eax, 0x2c
je 0x580812
cmp eax, 0x5b
je 0x580740
cmp eax, 0xff
ja 0x580310
movzx ecx, al
lea edx, [0x890120]
movzx ecx, byte [edx + ecx]
test cl, 0x60
setne cl
jmp 0x58032b
mov ecx, dword [0x89d7d8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00478ff0
movzx ecx, byte [esp + 8]
mov eax, dword [esp + 0x3c]
test cl, cl
jne 0x580565
cmp eax, 0x27
je 0x580409
cmp eax, 0x22
je 0x580409
cmp eax, 0x28
je 0x5803e9
cmp eax, 0x29
je 0x5803c9
nop
nop
mov eax, dword [esp + 0xb8]
dec dword [eax + 0xc]
mov dword [esp], eax
mov byte [esp + 4], 0
mov byte [esp + 5], 1
mov byte [esp + 6], 1
lea eax, [0x6beb18]
mov dword [esp + 8], eax
call fcn.00580c60
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040d540
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
lea edi, [esp + 0x78]
lea esi, [esp + 0xbc]
call fcn.0046c59e
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
xor ebx, ebx
jmp 0x5809f0
mov dword [esp], 0x29
call fcn.0040d430
mov eax, dword [esp + 4]
mov ecx, 0xe
lea edx, [0x62f1e0]
jmp 0x5809b1
mov dword [esp], 0x28
call fcn.0040d430
mov eax, dword [esp + 4]
mov ecx, 0xd
lea edx, [0x62f1e0]
jmp 0x5809b1
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
mov byte [esp + 4], 1
mov byte [esp + 5], 0
mov byte [esp + 6], 1
lea ecx, [0x6beb20]
mov dword [esp + 8], ecx
call fcn.00580c60
movzx eax, byte [esp + 0x14]
mov byte [esp + 0x23], al
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0040d540
movzx eax, byte [esp + 0x23]
test al, al
je 0x580500
mov ecx, dword [esp + 8]
mov dword [esp + 0x58], ecx
nop
mov edx, dword [esp + 0xb8]
inc dword [edx + 0xc]
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
lea edi, [esp + 0xa0]
xor eax, eax
call fcn.0046c0bb
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.005813a0
movzx ecx, byte [esp + 0x1c]
mov byte [esp + 0x22], cl
lea edi, [esp + 0xa0]
lea esi, [esp + 8]
call fcn.0046c59e
lea edi, [esp + 0x64]
lea esi, [esp + 0xa0]
call fcn.0046c59e
movzx ecx, byte [esp + 0x22]
test cl, cl
jne 0x5804d0
mov eax, 4
lea edx, [0x62efe0]
mov ecx, dword [esp + 0x58]
jmp 0x5804f5
lea eax, [0x666460]
mov dword [esp], eax
lea ecx, [esp + 0x64]
mov dword [esp + 4], ecx
call fcn.0040d300
mov ecx, dword [esp + 8]
mov eax, 6
lea edx, [0x666460]
mov ebx, ecx
mov ecx, eax
mov eax, ebx
jmp 0x5809b1
lea eax, [0x63cf40]
mov dword [esp], eax
call fcn.0040fcf0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x17
lea ecx, [0x684db3]
mov dword [eax], ecx
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
lea ecx, [0x701730]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], eax
mov byte [esp + 0xe8], 0
add esp, 0xb4
ret
nop
nop
mov eax, dword [esp + 0xb8]
dec dword [eax + 0xc]
mov dword [esp], eax
mov byte [esp + 4], 0
mov byte [esp + 5], 1
mov byte [esp + 6], 1
lea eax, [0x6beb30]
mov dword [esp + 8], eax
call fcn.00580c60
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040d540
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
lea ecx, [0x62efe0]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x701570]
mov dword [esp + 8], edx
call fcn.00407b50
movzx eax, byte [esp + 0xc]
test al, al
je 0x5805f6
mov eax, 1
lea ecx, [0x896a80]
lea eax, [ecx + eax*8]
lea ecx, [0x62f020]
mov edx, 3
jmp 0x580646
lea eax, [0x62efe0]
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
lea edx, [0x701578]
mov dword [esp + 8], edx
call fcn.00407b50
movzx eax, byte [esp + 0xc]
test al, al
je 0x580637
xor ecx, ecx
lea edx, [0x896a80]
lea eax, [edx + ecx*8]
lea ecx, [0x62f020]
mov edx, 3
jmp 0x580646
lea ecx, [0x62efe0]
mov eax, dword [esp + 0x58]
mov edx, 7
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
lea ebx, [0x62efe0]
cmp ecx, ebx
je 0x580660
xor ebp, ebp
jmp 0x58068f
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x701580]
mov dword [esp + 8], edx
call fcn.00407b50
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
lea ebx, [0x62efe0]
mov ebp, eax
mov eax, dword [esp + 0x48]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x5806ca
cmp ecx, ebx
je 0x58069d
xor ebx, ebx
jmp 0x5806c6
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x701588]
mov dword [esp + 8], edx
call fcn.00407b50
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [esp + 0x48]
test bl, bl
je 0x5806db
mov edx, 0xa
lea ecx, [0x62efe0]
lea eax, [0x701580]
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
lea ebx, [0x6344a0]
mov dword [esp], ebx
mov ebx, dword [esp + 0xd0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0xc], ebx
call fcn.00414480
movzx eax, byte [esp + 0x14]
test al, al
je 0x58072f
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx]
mov ecx, 8
lea edx, [0x636460]
jmp 0x5809b1
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
jmp 0x5809b1
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
mov byte [esp + 4], 1
mov byte [esp + 5], 0
mov byte [esp + 6], 1
lea ecx, [0x6beb1c]
mov dword [esp + 8], ecx
call fcn.00580c60
movzx eax, byte [esp + 0x14]
mov byte [esp + 0x23], al
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0040d540
movzx eax, byte [esp + 0x23]
test al, al
je 0x5807ad
mov eax, dword [esp + 8]
nop
mov ebx, dword [esp + 0xb8]
inc dword [ebx + 0xc]
mov ecx, 7
lea edx, [0x62efe0]
jmp 0x5809b1
lea eax, [0x63cf40]
mov dword [esp], eax
call fcn.0040fcf0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1a
lea ecx, [0x68651f]
mov dword [eax], ecx
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
lea ecx, [0x701730]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], eax
mov byte [esp + 0xe8], 0
add esp, 0xb4
ret
mov ecx, 9
lea edx, [0x62efe0]
lea eax, [0x701568]
jmp 0x5809b1
nop
nop
mov eax, dword [esp + 0xb8]
dec dword [eax + 0xc]
mov dword [esp], eax
mov byte [esp + 4], 0
mov byte [esp + 5], 1
mov byte [esp + 6], 1
lea eax, [0x6beb24]
mov dword [esp + 8], eax
call fcn.00580c60
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x40
call fcn.00484620
movsd xmm0, qword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
movsd qword [esp + 0x40], xmm0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.0040d490
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x5808bd
mov eax, dword [esp + 8]
mov ecx, 2
lea edx, [0x62f120]
jmp 0x5809b1
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call fcn.0040d540
mov eax, dword [esp + 8]
lea ecx, [0x62efe0]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
lea eax, [0x68c392]
mov dword [esp], eax
mov dword [esp + 4], 0x2e
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004e7650
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x50], ecx
lea edx, [0x63cf40]
mov dword [esp], edx
call fcn.0040fcf0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [0x8cc0e0]
test ecx, ecx
jne 0x58095a
mov ecx, dword [esp + 0x50]
jmp 0x580965
call fcn.0046beb0
mov ecx, dword [esp + 0x50]
mov dword [edi], ecx
mov dword [eax], ecx
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
lea ecx, [0x701730]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], eax
mov byte [esp + 0xe8], 0
add esp, 0xb4
ret
xor ecx, ecx
xor edx, edx
xor eax, eax
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], edx
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
test ecx, ecx
setne al
mov byte [esp + 0xe8], al
add esp, 0xb4
ret
inc ebx
cmp ebx, edx
jge 0x580a42
lea ebp, [ecx + ebx*4]
cmp dword [ebp], 1
jne 0x5809ef
mov eax, dword [0x8a6694]
lea ecx, [0x634c60]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], edx
call fcn.00414480
movzx eax, byte [esp + 0x14]
test al, al
je 0x580a42
mov ecx, 1
lea edx, [0x62efe0]
mov eax, dword [esp + 0x58]
jmp 0x5809b1
mov eax, dword [0x8a669c]
lea ecx, [0x634c60]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], edx
call fcn.00414480
movzx eax, byte [esp + 0x14]
test al, al
je 0x580a87
mov ecx, 0xc
lea edx, [0x62efe0]
mov eax, dword [esp + 0x58]
jmp 0x5809b1
mov eax, dword [0x8a667c]
lea ecx, [0x634c60]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], edx
call fcn.00414480
movzx eax, byte [esp + 0x14]
test al, al
je 0x580acc
mov ecx, 0xb
lea edx, [0x62efe0]
mov eax, dword [esp + 0x58]
jmp 0x5809b1
mov eax, dword [0x8a6678]
lea ecx, [0x634c60]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], edx
call fcn.00414480
movzx eax, byte [esp + 0x14]
test al, al
je 0x580b11
mov ecx, 0xa
lea edx, [0x62efe0]
mov eax, dword [esp + 0x58]
jmp 0x5809b1
mov eax, dword [0x8a6698]
lea ecx, [0x634c60]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc], ecx
call fcn.00414480
movzx eax, byte [esp + 0x14]
test al, al
je 0x580b56
mov ecx, 0xf
lea edx, [0x62efe0]
mov eax, dword [esp + 0x58]
jmp 0x5809b1
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call fcn.0040d540
mov eax, dword [esp + 8]
lea ecx, [0x62efe0]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
lea eax, [0x682def]
mov dword [esp], eax
mov dword [esp + 4], 0x13
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004e7650
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x54], ecx
lea edx, [0x63cf40]
mov dword [esp], edx
call fcn.0040fcf0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [0x8cc0e0]
test ecx, ecx
jne 0x580bf3
mov ecx, dword [esp + 0x54]
jmp 0x580bfe
call fcn.0046beb0
mov ecx, dword [esp + 0x54]
mov dword [edi], ecx
mov dword [eax], ecx
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
lea ecx, [0x701730]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], eax
mov byte [esp + 0xe8], 0
add esp, 0xb4
ret
mov eax, ebx
call fcn.0046bf30
nop
call fcn.0046aab0
jmp fcn.00580230