Function at 0x40ad43
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46d63e
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4879c0]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x4879c0]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 0x38]
xor edi, edi
cmp eax, edi
jne 0x40ad9a
xor eax, eax
jmp 0x40afeb
mov dword [esp + 0x10], edi
mov dword [esp + 0x268], edi
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x26c], 1
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov esi, dword [ebx]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], edi
cmp esi, edi
je 0x40ae4f
xor eax, eax
push 0x206
mov word [esp + 0x50], ax
lea eax, [esp + 0x52]
push edi
push eax
call fcn.00431530
add esp, 0xc
push 0x104
lea eax, [esp + 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea eax, [esp + 0x4c]
push eax
call edi
push esi
mov dword [esp + 0x18], eax
call edi
mov edi, eax
lea eax, [esp + 0x4c]
push esi
push eax
call fcn.00430327
pop ecx
pop ecx
test eax, eax
je 0x40ae47
push esi
push dword [esp + 0x18]
call fcn.00430327
pop ecx
pop ecx
test eax, eax
je 0x40ae47
test edi, edi
je 0x40ae4f
push edi
push dword [esp + 0x18]
call fcn.00430327
pop ecx
pop ecx
test eax, eax
jne 0x40ae4f
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x24]
jge 0x40afd6
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + eax*4]
movzx ecx, word [eax]
push 0x2f
pop edx
cmp dx, cx
je 0x40af03
push 0x2d
pop edx
cmp dx, cx
je 0x40af03
push eax
lea esi, [esp + 0x24]
call fcn.0040a949
push dword [esp + 0x20]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x40afbf
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x2c]
add edi, 0x20
test ecx, ecx
jne 0x40aeb0
xor eax, eax
jmp 0x40aeb8
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov ebx, dword [edi + 0x10]
mov edx, ebx
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x40aed8
lea eax, [esp + 0x20]
xor esi, esi
push eax
inc esi
call fcn.0040e906
mov dword [edi + 0x10], eax
jmp 0x40aefa
lea esi, [esp + 0x34]
call fcn.0040f570
push dword [esp + 0x38]
lea eax, [esp + 0x24]
push dword [esp + 0x38]
push eax
lea eax, [esp + 0x48]
push eax
mov eax, edi
call fcn.0040e7cd
mov ebx, dword [esp + 0x28]
jmp 0x40afbf
add eax, 2
push eax
lea esi, [esp + 0x14]
call fcn.0040a949
push dword [esp + 0x10]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
call esi
test eax, eax
jbe 0x40af31
push dword [esp + 0x10]
call esi
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_CharLowerBuffW]
mov eax, dword [0x48d17c]
mov dword [esp + 0x30], eax
mov eax, dword [0x48d164]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x48]
push eax
push 0x48d164
call fcn.0040e104
lea edi, [esp + 0x2c]
mov esi, eax
call fcn.004192bb
test al, al
je 0x40afab
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x24]
jge 0x40afab
mov eax, dword [esp + 0x18]
mov eax, dword [ebx + eax*4 + 4]
movzx ecx, word [eax]
push 0x2d
pop edx
cmp dx, cx
je 0x40afab
push 0x2f
pop edx
cmp dx, cx
je 0x40afab
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x24]
call fcn.0040dfba
mov esi, eax
call fcn.0040a949
inc dword [esp + 0x18]
inc dword [esp + 0x14]
jmp 0x40afbf
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x20]
call fcn.0040dfba
push eax
call fcn.0040a981
mov eax, dword [esp + 0x18]
inc eax
inc dword [esp + 0x14]
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
jl 0x40ae64
push dword [esp + 0x20]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [esp + 0x10]
call esi
xor eax, eax
inc eax
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0042ea9f
mov esp, ebp
pop ebp
ret 4