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

Disassembly:
mov ecx, dword [0x7da588]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5b2560
sub esp, 0x68
mov eax, 0
mov dword [esp + 0x64], eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [0x5b2570]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], ecx
mov byte [esp + 0x23], 1
mov ecx, dword [eax + 0x98]
test ecx, ecx
je 0x5b24c0
mov edx, dword [esp + 0x70]
test edx, edx
jne 0x5b2393
mov edx, dword [eax + 0x6c]
mov ebx, dword [eax + 0x70]
test edx, edx
sete dl
test ebx, ebx
sete bl
and ebx, edx
test bl, bl
jne 0x5b2479
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00406dd0
movzx eax, byte [esp + 8]
test al, al
jne 0x5b2458
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x6c]
mov edx, dword [eax + 0x70]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0048bb40
mov eax, dword [esp + 8]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx]
mov edx, dword [eax + 0x98]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x40], edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x40]
mov dword [esp], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 2
mov byte [esp + 0x14], 1
call fcn.0044c9f0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5b2437
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x80]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0x84]
mov dword [esp + 0x2c], edx
xor ebx, ebx
jmp 0x5b2508
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
call eax
add esp, 0x68
ret
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
call eax
add esp, 0x68
ret
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov eax, dword [eax + 0x98]
mov dword [esp], eax
lea eax, [esp + 0x38]
mov dword [esp + 4], eax
call fcn.00406590
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
call eax
add esp, 0x68
ret
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
call eax
add esp, 0x68
ret
mov dword [esp + 0x30], ebx
lea eax, [ecx + ebx*8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [edx + 0x10]
mov dword [esp], eax
call edx
mov eax, dword [esp + 0x30]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
cmp ebx, edx
jl 0x5b24e1
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov eax, dword [eax + 0x98]
mov dword [esp], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call fcn.00406590
mov eax, dword [0x790000]
mov ecx, dword [0x790004]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
call eax
add esp, 0x68
ret
call fcn.0046aa70
jmp fcn.005b22a0