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

Disassembly:
push 0xffffffffffffffff
push 0x5dcb87
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6396a8]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push 0x250
mov dword [esp + 0x18], ebx
call fcn.005b2b20
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
cmp edi, ebx
mov dword [esp + 0x98], ebx
je 0x5807b7
cmp esi, ebx
je 0x580694
lea eax, [esi + 0x1e0]
mov dword [esp + 0x18], eax
jmp 0x580698
mov dword [esp + 0x18], ebx
push 2
mov ebp, 0xf
push 0x5f1108
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], ebp
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
call fcn.0043df40
push 2
push 0x5f1104
lea ecx, [esp + 0x60]
mov byte [esp + 0xa0], 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.0043df40
push 1
push 0x5f084c
lea ecx, [esp + 0x44]
mov dword [esp + 0xa0], 2
mov dword [esp + 0x1c], 3
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.0043df40
push 1
push 0x5f0848
lea ecx, [esp + 0x28]
mov dword [esp + 0xa0], 3
mov dword [esp + 0x1c], 7
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.0043df40
mov ecx, dword [esp + 0x18]
movzx edx, byte [esi + 0x309]
push ecx
push ebx
push edx
lea eax, [esp + 0x80]
push eax
mov ecx, esi
mov dword [esp + 0xa8], 4
mov dword [esp + 0x24], ebp
call fcn.00560da0
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, esi
call fcn.00560da0
push eax
lea edx, [esp + 0x50]
push edx
mov ecx, esi
call fcn.00560da0
mov ebp, eax
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.00560da0
sub esp, 8
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], ebp
mov ecx, edi
mov dword [esp + 0x34], esp
call fcn.005ad130
jmp 0x5807b9
xor eax, eax
push eax
mov ecx, esi
mov dword [esp + 0x9c], 8
mov dword [esi + 0x310], eax
call fcn.00585fc0
test byte [esp + 0x14], 8
mov ebp, 0x10
je 0x580809
and dword [esp + 0x14], 0xfffffff7
cmp dword [esp + 0x38], ebp
jb 0x5807f6
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005b28f2
add esp, 4
mov edi, 0xf
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
jmp 0x58080e
mov edi, 0xf
test byte [esp + 0x14], 4
je 0x580839
and dword [esp + 0x14], 0xfffffffb
cmp dword [esp + 0x54], ebp
jb 0x58082d
mov edx, dword [esp + 0x40]
push edx
call fcn.005b28f2
add esp, 4
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
test byte [esp + 0x14], 2
je 0x580864
and dword [esp + 0x14], 0xfffffffd
cmp dword [esp + 0x70], ebp
jb 0x580858
mov eax, dword [esp + 0x5c]
push eax
call fcn.005b28f2
add esp, 4
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
test byte [esp + 0x14], 1
je 0x580881
cmp dword [esp + 0x8c], ebp
jb 0x580881
mov ecx, dword [esp + 0x78]
push ecx
call fcn.005b28f2
add esp, 4
mov edx, dword [esi + 0x310]
mov al, byte [esi + 0x308]
mov byte [edx + 0xe5], al
mov dword [esi + 0x304], 3
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret