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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x687036
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x9c48d0]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [esp + 0x5c]
mov dword [esp + 0x28], ebx
mov ecx, dword [esi]
push eax
call fcn.0059bf90
mov edi, dword [ebp + 0x14]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, edi
mov dword [esp + 0xbc], ebx
call fcn.005938a0
test eax, eax
jne 0x5a0557
lea edx, [esp + 0x5c]
push edx
mov ecx, edi
call fcn.0059bb50
xor edi, edi
mov dword [eax + 0x34], edi
mov ecx, dword [esi]
call fcn.005a6100
test eax, eax
jle 0x5a0214
push str.NDIR
lea ecx, [esp + 0x20]
call fcn.005c5ad0
mov ecx, dword [esi]
lea eax, [esp + 0x1c]
mov ebx, 1
push eax
mov byte [esp + 0xbc], 1
mov dword [esp + 0x2c], ebx
call fcn.005a62f0
mov byte [esp + 0x17], bl
test al, al
je 0x5a0219
mov byte [esp + 0x17], 0
mov dword [esp + 0xb8], edi
test bl, 1
je 0x5a022e
lea ecx, [esp + 0x1c]
call fcn.005935f0
cmp byte [esp + 0x17], 0
je 0x5a0557
mov ecx, dword [esi]
push edi
lea edx, [esp + 0x44]
push edx
call fcn.005a8ba0
mov ecx, dword [esi]
push 1
push edi
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0xc4], 2
call fcn.005acf60
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x40]
mov edi, eax
mov byte [esp + 0xb8], 3
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ecx
test eax, eax
je 0x5a03f6
jmp 0x5a0289
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov esi, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
test edi, edi
je 0x5a029f
lea edx, [esp + 0x40]
cmp edx, ecx
je 0x5a02b1
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x20]
call fcn.005ba8d0
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 8]
test eax, eax
je 0x5a02c4
add eax, 4
push eax
call fcn.0058e490
add esp, 4
mov esi, dword [esi + 8]
mov dword [esp + 0x50], esi
push str.NDIR
lea ecx, [esp + 0x58]
mov byte [esp + 0xbc], 4
call fcn.005c5ad0
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
mov byte [esp + 0xbc], 5
call fcn.005a62f0
lea ecx, [esp + 0x54]
mov bl, al
mov byte [esp + 0xb8], 4
call fcn.005935f0
test bl, bl
je 0x5a03be
lea edx, [esp + 0x88]
push edx
mov ecx, esi
call fcn.0059bf90
lea ecx, [esp + 0x80]
push ecx
mov ecx, eax
mov byte [esp + 0xbc], 6
call fcn.005cb6e0
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0xc4], 7
call fcn.005a6a90
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xbc], 8
call fcn.005c1190
mov edi, dword [esp + 0x28]
mov byte [esp + 0xb8], 7
mov dword [esp + 0x28], 0
test edi, edi
je 0x5a0392
lea ecx, [edi + 4]
push ecx
call fcn.0058e4a0
add esp, 4
test eax, eax
jne 0x5a0392
mov ecx, edi
call fcn.005c1030
lea ecx, [esp + 0x80]
mov byte [esp + 0xb8], 6
call fcn.005935f0
lea ecx, [esp + 0x88]
mov byte [esp + 0xb8], 4
call fcn.00593cf0
mov edi, dword [esp + 0x30]
mov byte [esp + 0xb8], 3
test esi, esi
je 0x5a03e1
lea edx, [esi + 4]
push edx
call fcn.0058e4a0
add esp, 4
test eax, eax
jne 0x5a03e1
mov ecx, esi
call fcn.005c1030
test edi, edi
je 0x5a03f3
mov edi, dword [edi]
mov dword [esp + 0x30], edi
test edi, edi
jne 0x5a0281
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
lea eax, [esp + 0x88]
push eax
call fcn.0059bf90
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
mov byte [esp + 0xbc], 9
call fcn.005cb6e0
lea ecx, [esp + 0x88]
mov byte [esp + 0xb8], 0xb
call fcn.00593cf0
xor edx, edx
cmp byte [ebp + 0xc], dl
lea eax, [esp + 0x38]
setne dl
mov ecx, eax
push edx
push eax
push ecx
mov edx, eax
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.005d6e10
add esp, 0x14
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
mov byte [esp + 0xc0], 0xc
mov dword [esp + 0x58], esp
mov esi, esp
test eax, eax
je 0x5a0477
add eax, 4
push eax
call fcn.0058e490
mov eax, dword [esp + 0x24]
add esp, 4
mov ebx, dword [ebp + 0x10]
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
mov dword [esi], eax
call fcn.00599440
mov esi, dword [esp + 0x48]
lea edi, [esp + 0x40]
test esi, esi
je 0x5a04d7
mov edx, dword [ebp + 0x14]
push edx
push ebx
push 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
test esi, esi
je 0x5a04af
lea eax, [esp + 0x4c]
cmp eax, edi
je 0x5a04bd
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.005ba8d0
mov edx, dword [esp + 0x28]
add edx, 8
push edx
call fcn.005a0160
add esp, 0x10
test esi, esi
je 0x5a04d7
mov esi, dword [esi]
test esi, esi
jne 0x5a0494
mov esi, dword [esp + 0x2c]
mov byte [esp + 0xb8], 0xb
mov dword [esp + 0x2c], 0
test esi, esi
je 0x5a0506
lea eax, [esi + 4]
push eax
call fcn.0058e4a0
add esp, 4
test eax, eax
jne 0x5a0506
mov ecx, esi
call fcn.005c1030
lea ecx, [esp + 0x38]
mov byte [esp + 0xb8], 3
call fcn.005935f0
mov esi, dword [esp + 0x18]
mov byte [esp + 0xb8], 2
mov dword [esp + 0x18], 0
test esi, esi
je 0x5a0546
lea ecx, [esi + 4]
push ecx
call fcn.0058e4a0
add esp, 4
test eax, eax
jne 0x5a0546
mov ecx, esi
call fcn.005c1030
lea ecx, [esp + 0x40]
mov byte [esp + 0xb8], 0
call fcn.005bae70
mov dword [esp + 0x5c], 0x6941a0
mov eax, dword [esp + 0x78]
mov esi, 0x690ac0
or edi, 0xffffffff
mov dword [esp + 0xb8], 0xe
mov dword [esp + 0x74], esi
test eax, eax
je 0x5a0595
add dword [eax + 4], edi
jne 0x5a058d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x70]
mov byte [esp + 0xb8], 0xd
mov dword [esp + 0x6c], esi
test eax, eax
je 0x5a05c0
add dword [eax + 4], edi
jne 0x5a05b8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov dword [esp + 0x70], 0
lea ecx, [esp + 0x64]
mov dword [esp + 0xb8], edi
call fcn.005935f0
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret