Function at 0x407523
Capabilities:
Accept command line arguments
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push edi
call esi
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
mov edi, 0x820
push edi
call fcn.00407e2e
push edi
mov ebx, eax
xor edi, edi
push edi
push ebx
mov dword [ebp - 0x18], ebx
call fcn.00406240
or dword [ebp - 0x14], 0xffffffff
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call esi
push eax
call fcn.004083b6
add esp, 0xc
test al, al
jne 0x40757d
mov word [ebx], di
mov dword [ebp - 0xc], edi
mov esi, dword [ebp - 8]
push 4
pop ebx
push 2
pop edi
cmp dword [ebp - 0xc], edi
mov dword [ebp - 0x10], 1
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
jl 0x407620
mov eax, dword [esi + 4]
mov ecx, 0x401708
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4075ca
test dx, dx
je 0x4075c6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4075ca
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x4075a6
xor eax, eax
jmp 0x4075cf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4075da
mov byte [0x40a018], 1
cmp dword [ebp - 0xc], edi
jle 0x407620
mov eax, dword [esi + 4]
mov ecx, 0x4016e8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40760b
test dx, dx
je 0x407607
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40760b
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x4075e7
xor eax, eax
jmp 0x407610
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407620
mov byte [ebp - 2], 1
mov dword [ebp - 0x10], edi
jmp 0x4077ba
cmp dword [ebp - 0xc], 1
jle 0x407738
mov eax, dword [ebp - 8]
mov edi, dword [eax + 4]
mov esi, 0x4016b4
mov ecx, esi
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40765d
test dx, dx
je 0x407659
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40765d
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x407639
xor eax, eax
jmp 0x407662
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4076f3
mov eax, dword [ebp - 8]
mov esi, dword [eax + 8]
mov ecx, 0x40168c
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40769b
test dx, dx
je 0x407697
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40769b
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x407677
xor eax, eax
jmp 0x4076a0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4076b0
mov dword [ebp - 0x14], 0xb
jmp 0x4077ba
mov ecx, 0x401658
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4076db
test dx, dx
je 0x4076d7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4076db
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x4076b7
xor eax, eax
jmp 0x4076e0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4076f0
mov dword [ebp - 0x14], 0x1e
jmp 0x4077ba
push esi
jmp 0x40772a
mov ecx, esi
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40771b
test dx, dx
je 0x407717
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40771b
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x4076f7
xor eax, eax
jmp 0x407720
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407738
mov eax, dword [ebp - 8]
push dword [eax + 8]
call fcn.00407f77
pop ecx
mov dword [ebp - 0x14], eax
jmp 0x4077ba
cmp word [section..MAIN], 0
jne 0x40775f
push section..MAIN
call fcn.0040865b
test al, al
pop ecx
jne 0x407759
push 0xa
pop eax
jmp 0x407894
mov byte [ebp - 1], 1
jmp 0x4077ba
push 2
pop esi
cmp dword [ebp - 0xc], esi
jl 0x407891
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov ecx, 0x4015e0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40779a
test dx, dx
je 0x407796
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40779a
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x407776
xor eax, eax
jmp 0x40779f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407891
push section..MAIN
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp eax, 1
jne 0x407751
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
mov esi, dword [ebp - 0x18]
jle 0x4077e3
push 0x410
sub eax, ecx
push esi
push eax
mov eax, dword [ebp - 8]
lea eax, [eax + ecx*4]
push eax
call fcn.004083ce
add esp, 0x10
test al, al
jne 0x4077e7
and word [esi], 0
push esi
call fcn.00407274
mov edi, eax
test edi, edi
pop ecx
jne 0x4077fb
push 0x17
jmp 0x407753
mov esi, 0x40a028
mov ecx, esi
call fcn.00407d7f
test eax, eax
je 0x407834
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call fcn.00407d7f
push eax
call fcn.00408617
pop ecx
pop ecx
lea eax, [ebp - 0x220]
push eax
push 0x401598
mov ecx, edi
call fcn.004088a0
cmp byte [ebp - 2], 0
je 0x407850
or dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp - 0x18]
call fcn.00406828
add esp, 0xc
jmp 0x40785b
push dword [ebp - 0x14]
push edi
call fcn.00407490
pop ecx
pop ecx
cmp byte [ebp - 1], 0
je 0x40786c
push section..MAIN
call fcn.0040844d
pop ecx
cmp dword [ebp - 8], 0
je 0x40787b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
mov ecx, edi
call fcn.00407504
push dword [ebp - 0x18]
call fcn.00407e3e
pop ecx
xor eax, eax
jmp 0x407894
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret