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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x14]
cmp eax, dword [ecx + 8]
jbe 0x5a1d08
sub esp, 0x94
mov ecx, dword [esp + 0x98]
mov ebx, dword [ecx + 0x270]
mov dword [esp + 0x30], ebx
mov ebp, dword [ecx + 0x26c]
mov dword [esp + 0x2c], ebp
mov eax, ecx
mov ecx, dword [ecx + 0x268]
mov dword [esp + 0x4c], ecx
mov edx, ebx
lea ebx, [esp + 4]
mov dword [esp + 0x54], ebx
xor esi, esi
mov dword [esp + 0x28], esi
cmp esi, ebp
jge 0x5a1aec
lea edi, [esp + 0x80]
xor eax, eax
call fcn.0044a37b
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], edx
mov ebx, dword [esp + 0x98]
mov ebp, dword [ebx + 0x190]
mov edi, esp
lea esi, [esp + 0x80]
call fcn.0044a85e
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp]
mov edx, ebp
call ecx
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
movzx ecx, byte [esp + 0x36]
test cl, cl
jne 0x5a1a37
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
movzx eax, byte [esp + 0x41]
test al, 8
je 0x5a1cfe
xor eax, eax
test al, al
jne 0x5a1b9a
mov eax, dword [esp + 0x98]
lea ecx, [eax + 0x181]
mov dword [esp], ecx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0059f250
lea edi, [esp + 0x58]
xor eax, eax
call fcn.0044a37b
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x60], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x64], edx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x68], ebx
mov ebp, dword [esp + 0x98]
mov dword [esp], ebp
mov edi, dword [esp + 0x54]
lea esi, [esp + 0x58]
call fcn.0044a85e
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
call fcn.0059f850
movzx eax, byte [esp + 0x45]
mov ecx, dword [esp + 0x28]
lea esi, [ecx + eax]
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x28], esi
cmp esi, ebp
jl 0x5a199f
mov dword [eax + 0x26c], 0
mov dword [eax + 0x270], 0
mov ecx, dword [0x884700]
lea edx, [eax + 0x268]
test ecx, ecx
jne 0x5a1b81
mov dword [eax + 0x268], 0
mov ecx, dword [0x884700]
lea edx, [eax + 0x25c]
test ecx, ecx
jne 0x5a1b66
lea ecx, [0x719c60]
mov dword [eax + 0x25c], ecx
mov dword [esp], eax
call fcn.005a37c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
add esp, 0x94
ret
mov dword [esp], edx
lea ecx, [0x719c60]
mov dword [esp + 4], ecx
call fcn.0040d5a0
mov eax, dword [esp + 0x98]
jmp 0x5a1b36
mov dword [esp], edx
mov dword [esp + 4], 0
call fcn.0040d5a0
mov eax, dword [esp + 0x98]
jmp 0x5a1b1a
mov eax, dword [esp + 0x98]
mov dword [esp], eax
call fcn.005a0490
mov eax, dword [esp + 0x98]
lea ecx, [eax + 0x1d4]
mov dword [esp + 0x50], ecx
test byte [ecx], al
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 0xc], pe_nt_image_headers32
call fcn.0059f500
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
cmp eax, 0x80
ja 0x5a1cf7
mov ecx, dword [esp + 0x98]
lea edx, [ecx + 0x181]
mov dword [esp], edx
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.0059f1c0
lea edi, [esp + 0x6c]
xor eax, eax
call fcn.0044a37b
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x7c], edx
mov ebx, dword [esp + 0x98]
mov dword [esp], ebx
mov edi, dword [esp + 0x54]
lea esi, [esp + 0x6c]
call fcn.0044a85e
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebp
call fcn.0059f850
movzx eax, byte [esp + 0x45]
mov ecx, dword [esp + 0x28]
add eax, ecx
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
ja 0x5a1cf0
sub ecx, eax
mov edx, dword [esp + 0x98]
mov dword [edx + 0x26c], ecx
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov dword [edx + 0x270], ecx
mov ebx, dword [0x884700]
dec ecx
sar ecx, 0x1f
xor ecx, 0xffffffff
and eax, ecx
mov ecx, dword [esp + 0x4c]
add eax, ecx
lea ecx, [edx + 0x268]
test ebx, ebx
jne 0x5a1ce2
mov dword [edx + 0x268], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], pe_nt_image_headers32
add esp, 0x94
ret
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040d5a0
jmp 0x5a1cba
call fcn.004246e0
ud2
call fcn.004246e0
ud2
mov eax, 1
jmp 0x5a1a39
call fcn.004486b0
jmp fcn.005a1940