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

Disassembly:
push 0xffffffffffffffff
push 0x64168d
mov eax, dword fs:[0]
push eax
sub esp, 0xc18
mov eax, dword [0x699fe8]
xor eax, esp
mov dword [esp + 0xc14], eax
push ebx
push ebp
push esi
mov eax, dword [0x699fe8]
xor eax, esp
push eax
lea eax, [esp + 0xc28]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x44], edi
mov esi, ecx
mov dword [esp + 0x10], ebx
mov byte [edi + 4], bl
push 0xa4
lea eax, [esp + 0x68]
push ebx
mov dword [esp + 0xc38], ebx
push eax
mov dword [esp + 0x30], 1
call fcn.00626020
mov edx, dword [esi + 0xc4]
mov ecx, dword [esi + 0xb8]
add esp, 0xc
push ebx
mov eax, 3
mov dword [esp + 0x8c], edx
mov edx, dword [0x6a9fb0]
push edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x8c], eax
mov eax, dword [0x6a9fac]
push eax
mov dword [esp + 0x70], ecx
mov ecx, dword [esi + 0xb4]
push ebx
mov dword [esp + 0x8c], ecx
push ebx
lea ecx, [esp + 0x78]
push ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push eax
push 0x14c
call dword [0x6a9fa8]
test eax, eax
je 0x5a554e
mov edi, edi
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x5a551c
cmp dword [esp + 0x7c], ebx
je 0x5a554e
cmp dword [esp + 0x10], ebx
jle 0x5a5276
sub dword [esp + 0x10], 1
jmp 0x5a551c
cmp ebp, ebx
jle 0x5a5281
sub eax, 5
mov dword [esp + 0x64], eax
lea edx, [esp + 0x20c]
push edx
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x218], 0x218
mov dword [esp + 0x228], 0x200
mov dword [esp + 0x20], ebx
call esi
push eax
call dword [0x6a9fb4]
test eax, eax
je 0x5a538d
push 0x47f8
push 0x100
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x22c]
push eax
call dword [0x6a9fa0]
cmp dword [0x6a9fb8], ebx
je 0x5a5359
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x34], 0x14
call esi
push eax
call dword [0x6a9fb8]
test eax, eax
jne 0x5a5316
mov dword [esp + 0x34], str._Unknown_File_Name_
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x8c]
lea edx, [esp + 0x118]
push edx
push eax
push ecx
lea edx, [esp + 0x440]
push str._08X__08X__hs_X___s__d_0x_08X__r_n
push edx
call fcn.0061d4e6
add esp, 0x24
jmp 0x5a5481
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x10c]
push ecx
push edx
push eax
lea ecx, [esp + 0x434]
push str._08X__08X__hs_X_r_n
push ecx
call fcn.0061d4e6
add esp, 0x18
jmp 0x5a5481
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x110]
push 0x104
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
call fcn.005a5580
lea eax, [esp + 0x118]
add esp, 0x10
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x5a53d2
sub eax, edx
push eax
lea edx, [esp + 0x10c]
push edx
lea ecx, [esp + 0x30]
call fcn.00404330
lea eax, [esp + 0x28]
lea ecx, [esp + 0x48]
mov dword [esp + 0xc30], 1
call fcn.005a5630
cmp dword [eax + 0x18], 0x10
jb 0x5a5412
mov eax, dword [eax + 4]
jmp 0x5a5415
add eax, 4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x84]
push ecx
push edx
push eax
lea ecx, [esp + 0x438]
push str._08X__08X__04X:_08X__s_r_n
push ecx
call fcn.0061d4e6
add esp, 0x1c
cmp dword [esp + 0x60], 0x10
jb 0x5a5456
mov edx, dword [esp + 0x4c]
push edx
call fcn.0061c19a
add esp, 4
mov byte [esp + 0xc30], bl
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x5a5481
mov eax, dword [esp + 0x2c]
push eax
call fcn.0061c19a
add esp, 4
lea eax, [esp + 0x424]
lea edx, [eax + 1]
jmp 0x5a5490
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x5a5490
sub eax, edx
push eax
lea ecx, [esp + 0x428]
push ecx
mov ecx, edi
call fcn.0041e3e0
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
push edx
mov edx, dword [esp + 0x9c]
push eax
push ecx
push edx
lea eax, [esp + 0x434]
push str.Params:__08X__08X__08X__08X_r_n
push eax
call fcn.0061d4e6
lea eax, [esp + 0x43c]
add esp, 0x18
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x5a54f0
sub eax, edx
push eax
lea ecx, [esp + 0x428]
push ecx
mov ecx, edi
call fcn.0041e3e0
push 2
push 0x66f6e8
mov ecx, edi
call fcn.0041e3e0
add ebp, 1
mov edx, dword [0x6a9fb0]
mov eax, dword [0x6a9fac]
push ebx
push edx
push eax
push ebx
push ebx
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
push 0x14c
call dword [0x6a9fa8]
test eax, eax
jne 0x5a5250
mov eax, edi
mov ecx, dword [esp + 0xc28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc14]
xor ecx, esp
call fcn.0061efd1
add esp, 0xc24
ret