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

Disassembly:
push 0xffffffffffffffff
push 0x78900d
mov eax, dword fs:[0]
push eax
sub esp, 0xc18
mov eax, dword [0x867e6c]
xor eax, esp
mov dword [esp + 0xc14], eax
push ebx
push ebp
push esi
mov eax, dword [0x867e6c]
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.0064edd0
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 [0x88b5a0]
push edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x8c], eax
mov eax, dword [0x88b59c]
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 [0x88b598]
test eax, eax
je 0x54cd1b
mov edi, edi
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x54cce8
cmp dword [esp + 0x7c], ebx
je 0x54cd1b
cmp dword [esp + 0x10], ebx
jle 0x54ca55
dec dword [esp + 0x10]
jmp 0x54cce8
cmp ebp, ebx
jle 0x54ca60
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 [0x88b5a4]
test eax, eax
je 0x54cb6c
push 0x47f8
push 0x100
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x22c]
push eax
call dword [0x88b590]
cmp dword [0x88b5a8], ebx
je 0x54cb38
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 [0x88b5a8]
test eax, eax
jne 0x54caf5
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.006456f4
add esp, 0x24
jmp 0x54cc5d
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.006456f4
add esp, 0x18
jmp 0x54cc5d
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
push 0x104
lea eax, [esp + 0x114]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call fcn.0054cd50
lea eax, [esp + 0x114]
add esp, 0xc
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x54cbb0
sub eax, edx
push eax
lea ecx, [esp + 0x10c]
push ecx
lea ecx, [esp + 0x30]
call fcn.004016e0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x48]
mov dword [esp + 0xc30], 1
call fcn.0054ce60
cmp dword [eax + 0x18], 0x10
jb 0x54cbee
mov eax, dword [eax + 4]
jmp 0x54cbf1
add eax, 4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x84]
push eax
push ecx
push edx
lea eax, [esp + 0x438]
push str._08X__08X__04X:_08X__s_r_n
push eax
call fcn.006456f4
add esp, 0x1c
cmp dword [esp + 0x60], 0x10
jb 0x54cc32
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.006441c7
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 0x54cc5d
mov edx, dword [esp + 0x2c]
push edx
call fcn.006441c7
add esp, 4
lea eax, [esp + 0x424]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x54cc67
sub eax, edx
push eax
lea eax, [esp + 0x428]
push eax
mov ecx, edi
call fcn.00402820
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x9c]
push edx
push eax
push ecx
lea edx, [esp + 0x434]
push str.Params:__08X__08X__08X__08X_r_n
push edx
call fcn.006456f4
lea eax, [esp + 0x43c]
add esp, 0x18
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x54ccc0
sub eax, edx
push eax
lea eax, [esp + 0x428]
push eax
mov ecx, edi
call fcn.00402820
push 2
push 0x81d6c8
mov ecx, edi
call fcn.00402820
inc ebp
mov ecx, dword [0x88b5a0]
mov edx, dword [0x88b59c]
push ebx
push ecx
push edx
push ebx
push ebx
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call esi
push eax
push 0x14c
call dword [0x88b598]
test eax, eax
jne 0x54ca30
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.00643db8
add esp, 0xc24
ret