Function at 0x40dd90
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fc13
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x4c312c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [edi]
cmp dword [esi - 0xc], 0
je 0x40df78
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x40df78
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00449a30
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
lea eax, [ebp - 0x218]
je 0x40de3a
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x40de7b
mov esi, dword [edi]
lea ecx, [ebp - 0x218]
mov edx, 0x104
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40de6e
movzx eax, word [ecx + esi]
test ax, ax
je 0x40de6e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40de50
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40df98
call fcn.00445730
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40df78
push 4
push str.FILE
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.0040ea40
push 3
push 0x49b650
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0040ea40
mov byte [ebp - 4], 1
call fcn.00445730
mov edi, eax
lea ecx, [ebp - 0x36c]
push 0x20
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0040c960
mov esi, eax
push 0x49b654
push esi
mov byte [ebp - 4], 2
call fcn.0040c3f0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0040c3f0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x36c]
call fcn.0040d880
lea ecx, [ebp - 0x230]
call fcn.0040d380
lea ecx, [ebp - 0x248]
call fcn.0040d380
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446cf9
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x218]
push eax
call fcn.004118e0
add esp, 4
test eax, eax
jne 0x40e093
call fcn.00445730
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40df78
push 4
push str.FILE
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.0040ea40
push 3
push 0x49b650
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 3
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040ea40
mov byte [ebp - 4], 4
call fcn.00445730
mov edi, eax
lea ecx, [ebp - 0x36c]
push 0x25
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040c960
mov esi, eax
mov byte [ebp - 4], 5
push str.HasMsSign_Failed:
push esi
call fcn.0040c3f0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0040c3f0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x36c]
call fcn.0040d880
lea ecx, [ebp - 0x248]
call fcn.0040d380
lea ecx, [ebp - 0x230]
jmp 0x40df73
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2d4], eax
test eax, eax
jne 0x40e15c
call fcn.00445730
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40df78
push 4
push str.FILE
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.0040ea40
push 3
push 0x49b650
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 6
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040ea40
mov byte [ebp - 4], 7
call fcn.00445730
mov edi, eax
lea ecx, [ebp - 0x36c]
push 0x2c
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040c960
mov esi, eax
mov byte [ebp - 4], 8
push str.LoadLibrary_Failed:
jmp 0x40e054
mov edi, dword [ebx]
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x2cc], eax
test edi, edi
jne 0x40e17b
xor eax, eax
mov dword [ebp - 0x2cc], eax
jmp 0x40e246
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e180
sub ecx, edx
lea eax, [ebp - 0x2c8]
sar ecx, 1
push 0x80
push eax
lea eax, [ebp - 0x2cc]
lea ebx, [ecx + 1]
lea esi, [ebx*4]
mov dword [ebp - 0x2d0], ebx
push esi
push eax
call fcn.00407950
add esp, 0x10
push 0
push 0
push esi
push dword [ebp - 0x2cc]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push edi
push 0
push 3
call esi
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x40e23c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40e23c
mov ebx, dword [ebp - 0x2d0]
push 0
push 0
push 0
push 0
push ebx
push edi
push 0
push 3
call esi
mov esi, eax
lea eax, [ebp - 0x2c8]
push 0x80
push eax
lea eax, [ebp - 0x2cc]
push esi
push eax
call fcn.00407950
add esp, 0x10
push 0
push 0
push esi
push dword [ebp - 0x2cc]
push ebx
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x40e289
mov eax, dword [ebp - 0x2cc]
push eax
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea ecx, [ebp - 0x2c8]
mov eax, dword [ebp - 0x2cc]
cmp eax, ecx
je 0x40e26e
push eax
call fcn.00454411
add esp, 4
test esi, esi
je 0x40df78
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call esi
mov eax, 1
jmp 0x40df7a
push 0x80
lea eax, [ebp - 0x2c8]
push eax
push dword [ebp - 0x2cc]
call fcn.004079d0
add esp, 0xc
call fcn.00408780
int3