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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x581ac1
sub esp, 0x68
mov eax, 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov byte [esp + 0x2b], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
call fcn.004b27e0
lea edi, [esp + 0x4c]
mov esi, esp
call fcn.0045caae
mov eax, dword [esp + 0x6c]
test byte [eax], al
mov dword [esp], eax
call fcn.00472a80
lea eax, [0x80a440]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x60], eax
mov byte [esp + 0x2b], 1
mov ecx, dword [eax + 0x10]
test ecx, 0x18
jne 0x581a53
xor ecx, ecx
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x30], ecx
mov dword [eax + 0x20], 0
mov dword [esp], eax
lea ebp, [eax + 0x1c]
mov dword [esp + 0x48], ebp
mov dword [esp + 4], ebp
lea edi, [esp + 8]
lea esi, [esp + 0x4c]
call fcn.0045caae
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call fcn.00580f10
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x78]
lea ebx, [ecx + edx]
mov dword [esp + 0x38], ebx
mov ebp, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
cmp ebx, ebp
ja 0x581a20
mov dword [esp + 0x34], ebp
mov dword [esp + 0x44], eax
lea ebx, [eax + ecx]
mov dword [esp], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.0045ccd0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 0x20], eax
mov edx, dword [esp + 0x34]
mov dword [ecx + 0x24], edx
mov ebx, dword [0xa8c6b0]
test ebx, ebx
jne 0x581a06
mov ebx, dword [esp + 0x44]
mov dword [ecx + 0x1c], ebx
mov ebp, dword [esp + 0x78]
test ebp, ebp
jne 0x5819f0
mov esi, dword [esp + 0x3c]
lea ebp, [esi + ebp + 1]
cmp edx, ebp
jb 0x58199a
lea edx, [eax + 1]
mov dword [ecx + 0x20], edx
mov byte [ebx + eax], 0xa
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov eax, dword [eax + 0x10]
mov ebx, dword [ecx + 0x1c]
mov ebp, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x24]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
mov byte [esp + 0x2b], 0
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.00472e40
add esp, 0x68
ret
lea ecx, [0x787b20]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.004431f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x6c]
mov dword [ebx + 0x24], edx
mov edx, dword [0xa8c6b0]
test edx, edx
jne 0x5819e5
mov dword [ebx + 0x1c], eax
mov edx, ecx
mov ecx, ebx
mov ebx, eax
mov eax, edx
jmp 0x581945
mov edi, dword [esp + 0x48]
call fcn.0045c330
jmp 0x5819d8
mov esi, dword [esp + 0x74]
lea esi, [ebp + esi - 1]
cmp byte [esi], 0xa
jne 0x581939
jmp 0x58194f
mov edi, dword [esp + 0x48]
mov ebx, eax
mov eax, dword [esp + 0x44]
call fcn.0045c330
mov eax, ebx
mov ebx, dword [esp + 0x44]
jmp 0x58192d
lea edx, [0x787b20]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.004431f0
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x78]
jmp 0x5818e7
mov dword [esp], eax
call fcn.00472e40
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.00407b10
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test al, al
je 0x581aa9
mov dword [esp + 0x30], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.00472a80
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x40]
jmp 0x581888
mov edx, 3
xor ebx, ebx
lea ecx, [0x7e064b]
jmp 0x581a7c
call fcn.0045ade0
jmp fcn.00581800