Function at 0x429840
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d0b91
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4ff0f4]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, edx
cmp dword [edi + 0x18], 8
mov dword [esp + 0x20], eax
lea eax, [edi + 4]
mov dword [esp + 0x24], ecx
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], eax
jb 0x4298a1
mov eax, dword [eax]
push 0x104
push eax
lea edx, [esp + 0x5c]
push edx
call fcn.004ab899
xor eax, eax
add esp, 0xc
lea esi, [esp + 0x48]
mov word [esp + 0x25a], ax
call fcn.0042d810
mov edx, dword [eax + 8]
lea ecx, [esp + 0x54]
push ecx
call edx
push 0xab
lea ecx, [esp + 0x1c]
call fcn.00440490
mov esi, eax
mov dword [esp + 0x270], 0
push 0xab
lea ecx, [esp + 0x20]
call fcn.00440490
mov byte [esp + 0x270], 1
mov ecx, dword [esi]
mov ecx, dword [ecx - 0xc]
mov eax, dword [eax]
push ecx
push eax
lea edx, [esp + 0x5c]
push edx
call fcn.004ab960
add esp, 0xc
test eax, eax
sete bl
mov byte [esp + 0x270], 0
lea ecx, [esp + 0x1c]
call fcn.00405410
or esi, 0xffffffff
mov dword [esp + 0x270], esi
lea ecx, [esp + 0x18]
call fcn.00405410
test bl, bl
je 0x429aec
push 0x104
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x429ea5
xor ecx, ecx
lea esi, [esp + 0x48]
mov word [esp + 0x25a], cx
call fcn.0042d810
mov eax, dword [eax + 8]
lea edx, [esp + 0x54]
push edx
call eax
push 0xab
lea ecx, [esp + 0x20]
call fcn.00440490
mov esi, eax
mov dword [esp + 0x270], 2
push 0xab
lea ecx, [esp + 0x1c]
call fcn.00440490
mov bl, 3
mov byte [esp + 0x270], bl
mov edx, dword [esi]
mov eax, dword [eax]
mov esi, dword [edx - 0xc]
mov edx, dword [eax - 0xc]
mov ecx, dword [edi + 0x14]
lea eax, [esp + 0x28]
push eax
sub ecx, esi
push edi
call fcn.0042d270
mov byte [esp + 0x270], 4
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x4299e1
mov eax, dword [eax + 4]
jmp 0x4299e4
add eax, 4
push eax
lea ecx, [esp + 0x58]
push 0x104
push ecx
call fcn.004ab8e3
add esp, 0xc
mov byte [esp + 0x270], bl
cmp dword [esp + 0x40], esi
jb 0x429a11
mov edx, dword [esp + 0x2c]
push edx
call fcn.004a9741
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov byte [esp + 0x270], 2
lea ecx, [esp + 0x18]
call fcn.00405410
or esi, 0xffffffff
mov dword [esp + 0x270], esi
lea ecx, [esp + 0x1c]
call fcn.00405410
lea edi, [esp + 0x54]
call fcn.00427610
test al, al
je 0x429ea5
mov ecx, edi
push ecx
lea ecx, [esp + 0x18]
call fcn.00405900
mov dword [esp + 0x270], 5
lea ecx, [esp + 0x14]
call fcn.00405a60
lea edx, [esp + 0x28]
push edx
call fcn.004282f0
mov bl, 6
mov byte [esp + 0x270], bl
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
call fcn.00407dc0
mov ecx, dword [esp + 0x24]
push ecx
lea edi, [esp + 0x30]
call fcn.0042d3f0
sub esp, 0x1c
mov edx, esp
mov dword [esp + 0x34], esp
push edx
lea edi, [esp + 0x48]
call fcn.00428350
mov byte [esp + 0x28c], 7
mov byte [esp + 0x28c], bl
mov ecx, dword [esp + 0x3c]
call fcn.0042d070
add esp, 0x1c
mov byte [esp + 0x13], 1
mov byte [esp + 0x270], 5
jmp 0x429d49
push 0xac
lea ecx, [esp + 0x20]
call fcn.00440490
mov ebx, eax
mov dword [esp + 0x270], 8
push 0xac
lea ecx, [esp + 0x1c]
call fcn.00440490
mov byte [esp + 0x270], 9
mov ecx, dword [ebx]
mov ecx, dword [ecx - 0xc]
mov eax, dword [eax]
push ecx
push eax
lea edx, [esp + 0x5c]
push edx
call fcn.004ab960
add esp, 0xc
test eax, eax
sete bl
mov byte [esp + 0x270], 8
lea ecx, [esp + 0x18]
call fcn.00405410
mov dword [esp + 0x270], esi
lea ecx, [esp + 0x1c]
call fcn.00405410
test bl, bl
je 0x429c85
push 0x104
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x429ea5
xor ecx, ecx
lea esi, [esp + 0x48]
mov word [esp + 0x25a], cx
call fcn.0042d810
mov eax, dword [eax + 8]
lea edx, [esp + 0x54]
push edx
call eax
push 0x4e7614
lea ecx, [esp + 0x58]
push 0x104
push ecx
call fcn.004ab8e3
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x429bbb
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
jmp 0x429bbf
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x58]
push 0x104
push eax
call fcn.004ab8e3
add esp, 0xc
lea edi, [esp + 0x54]
call fcn.00427610
test al, al
je 0x429ea5
mov ecx, edi
push ecx
lea ecx, [esp + 0x18]
call fcn.00405900
mov dword [esp + 0x270], 0xa
lea edx, [esp + 0x28]
push edx
call fcn.004282f0
mov bl, 0xb
mov byte [esp + 0x270], bl
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
call fcn.00407dc0
mov ecx, dword [esp + 0x24]
push ecx
lea edi, [esp + 0x30]
call fcn.0042d3f0
sub esp, 0x1c
mov edx, esp
mov dword [esp + 0x34], esp
push edx
lea edi, [esp + 0x48]
call fcn.00428350
mov byte [esp + 0x28c], 0xc
mov byte [esp + 0x28c], bl
mov ecx, dword [esp + 0x3c]
call fcn.0042d070
add esp, 0x1c
mov byte [esp + 0x13], 1
mov byte [esp + 0x270], 0xa
mov eax, edi
push eax
call fcn.0040d650
mov dword [esp + 0x270], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00405410
jmp 0x429ea5
push 0x13
push 0
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.SHELL32.dll_PathResolve]
test eax, eax
je 0x429d68
push 0x104
lea edx, [esp + 0x58]
push edx
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x429ea5
lea edi, [esp + 0x54]
call fcn.00427610
test al, al
je 0x429ea5
mov ecx, edi
push ecx
lea ecx, [esp + 0x18]
call fcn.00405900
mov dword [esp + 0x270], 0xd
lea edx, [esp + 0x28]
push edx
call fcn.004282f0
mov bl, 0xe
mov byte [esp + 0x270], bl
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
call fcn.00407dc0
mov ecx, dword [esp + 0x24]
push ecx
lea edi, [esp + 0x30]
call fcn.0042d3f0
sub esp, 0x1c
mov edx, esp
mov dword [esp + 0x34], esp
push edx
lea edi, [esp + 0x48]
call fcn.00428350
mov byte [esp + 0x28c], 0xf
mov byte [esp + 0x28c], bl
mov ecx, dword [esp + 0x3c]
call fcn.0042d070
add esp, 0x1c
mov byte [esp + 0x13], 1
mov byte [esp + 0x270], 0xd
lea eax, [esp + 0x28]
push eax
call fcn.0040d650
mov dword [esp + 0x270], esi
lea ecx, [esp + 0x14]
call fcn.00405410
jmp 0x429ea5
cmp dword [edi + 0x18], 8
jb 0x429d76
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
jmp 0x429d7a
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x429ea5
xor esi, esi
cmp dword [esp + 0x44], esi
jle 0x429ea5
mov bl, 0x11
jmp 0x429da6
mov eax, dword [esp + 0x18]
mov eax, dword [eax + esi*4]
push 0x104
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.004ab899
add esp, 0xc
push 0x13
push 0
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.SHELL32.dll_PathResolve]
test eax, eax
je 0x429e9a
push 0x104
lea eax, [esp + 0x58]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x429e9a
lea edi, [esp + 0x54]
call fcn.00427610
test al, al
je 0x429e9a
mov edx, edi
push edx
lea ecx, [esp + 0x18]
call fcn.00405900
mov dword [esp + 0x270], 0x10
lea eax, [esp + 0x28]
push eax
call fcn.004282f0
mov byte [esp + 0x270], bl
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00407dc0
mov edx, dword [esp + 0x24]
push edx
lea edi, [esp + 0x30]
call fcn.0042d3f0
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x38], esp
push eax
lea edi, [esp + 0x48]
call fcn.00428350
mov byte [esp + 0x28c], 0x12
mov byte [esp + 0x28c], bl
mov ecx, dword [esp + 0x3c]
call fcn.0042d070
add esp, 0x1c
mov byte [esp + 0x13], 1
mov byte [esp + 0x270], 0x10
mov ecx, edi
push ecx
call fcn.0040d650
mov dword [esp + 0x270], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00405410
inc esi
cmp esi, dword [esp + 0x44]
jl 0x429da2
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.004a974c
mov esp, ebp
pop ebp
ret