Function at 0x4e1260
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x57ea9b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x4c]
push ecx
add eax, 0xfffffff0
mov edi, 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x4c], esp
mov esi, esp
mov dword [esp + 0x20], eax
call fcn.00410660
add eax, 0x10
mov dword [esi], eax
call fcn.004e0cf0
add esp, 4
cmp dword [0x619cd0], ebx
jne 0x4e12db
call fcn.004e2510
call fcn.004e2120
call fcn.004e1c20
mov dword [0x619cd0], edi
call fcn.00445be0
mov esi, eax
call fcn.00446160
test eax, eax
je 0x4e1328
call fcn.00445be0
push eax
call fcn.00446220
test eax, eax
je 0x4e1328
call fcn.00445be0
lea esi, [esp + 0x24]
call fcn.00446340
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], ebx
je 0x4e131b
call fcn.004e1af0
lea esi, [esp + 0x24]
mov byte [esp + 0x40], bl
call fcn.00445a70
xor edi, edi
lea ebx, [esp + 0x14]
call fcn.004125d0
push eax
lea eax, [esp + 0x4c]
push eax
mov ebx, str.knatsrv.dll
mov byte [esp + 0x48], 2
call fcn.0041a8a0
add esp, 8
mov byte [esp + 0x40], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e1370
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e13d7
cmp dword [ebp + 4], 0
lea ebx, [ebp + 4]
jne 0x4e13d7
mov edx, dword [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebx], eax
call fcn.004a9f90
test eax, eax
jl 0x4e13d7
mov ebx, dword [ebx + 4]
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0xc
mov byte [esp + 0x28], 1
mov byte [esp + 0x29], 1
mov byte [esp + 0x2a], al
mov dword [esp + 0x2c], 1
je 0x4e13d7
lea eax, [esp + 0x24]
push eax
call ebx
call fcn.004e1550
test byte [0x6198b8], 1
jne 0x4e13f1
or dword [0x6198b8], 1
call fcn.0043b8d0
call fcn.004c8ad0
test eax, eax
je 0x4e1404
push 1
call fcn.004fc6d0
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call edi
push eax
call fcn.0051ecb0
call fcn.0051ee70
call fcn.00520a60
push 3
call fcn.00521ac0
push 0x2e58
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0x40], 5
je 0x4e1446
mov esi, eax
call fcn.004b0750
jmp 0x4e1448
xor eax, eax
test eax, eax
mov byte [esp + 0x40], 4
mov dword [ebp], eax
je 0x4e1497
call edi
test eax, eax
mov ecx, dword [ebp]
lea esi, [ecx + 0xc78]
jne 0x4e1467
xor ecx, ecx
jmp 0x4e147f
mov ecx, eax
lea edi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4e1470
sub ecx, edi
sar ecx, 1
push eax
mov ebx, ecx
mov eax, esi
call fcn.00410570
call fcn.004e0d80
call fcn.00533180
xor esi, esi
jmp 0x4e149b
mov esi, dword [esp + 0x18]
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e14c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e14e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8