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

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x170
push ebx
mov ebx, dword [ebp + 0x74]
push esi
push edi
lea esi, [ebx + 0x18]
push 3
mov byte [ebp + 0x67], 0
mov dword [ebp + 0x34], esi
call fcn.0040679b
mov esi, eax
test esi, esi
push ebx
je 0x4268ba
call fcn.004297f0
mov eax, dword [eax]
lea edi, [esi + 4]
mov ecx, dword [edi]
push eax
push ecx
mov dword [ebp + 0x54], edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x426867
mov edi, ebx
call fcn.004288f0
jmp 0x426db9
lea esi, [ebx + 0x28]
push edi
mov dword [ebp + 0x60], esi
call fcn.0040ed75
mov eax, edi
call fcn.0041334a
push ebx
call fcn.004297f0
push dword [eax]
lea esi, [ebp + 0x68]
call fcn.004015d9
add ebx, 0x120
push ebx
mov ebx, esi
call fcn.00426489
mov eax, dword [ebp + 0x68]
add eax, 0xfffffff0
call fcn.0040147d
mov edi, dword [ebp + 0x74]
mov eax, dword [ebp + 0x54]
add edi, 4
call fcn.00401bc0
mov ebx, dword [ebp + 0x74]
mov byte [ebp + 0x67], 1
jmp 0x4268cb
lea esi, [ebx + 0x28]
mov dword [ebp + 0x60], esi
call fcn.004297f0
push eax
call fcn.0040ed75
lea esi, [ebx + 0x24]
lea edi, [ebx + 0x90]
mov eax, esi
mov dword [ebp + 0x58], esi
call fcn.00401bc0
cmp byte [0x438cec], 0
je 0x426977
mov eax, dword [0x438af8]
mov edi, 0x438af8
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x68], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push dword [0x4388b0]
lea eax, [ebp + 0x68]
push eax
call fcn.004063dd
push eax
call fcn.004063dd
push eax
mov ebx, 0x438cbc
call fcn.00405df0
mov eax, dword [ebp + 0x68]
add eax, 0xfffffff0
call fcn.0040147d
cmp byte [0x438cec], 0
je 0x426974
mov eax, dword [0x438af8]
mov esi, dword [esi]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
push esi
push dword [0x4388b8]
mov dword [ebp + 0x68], eax
lea eax, [ebp + 0x68]
push eax
call fcn.004063dd
push eax
call fcn.004063dd
push eax
call fcn.00405df0
mov eax, dword [ebp + 0x68]
add eax, 0xfffffff0
call fcn.0040147d
mov ebx, dword [ebp + 0x74]
lea esi, [ebx + 0x7c]
lea ecx, [ebx + 0x160]
mov eax, esi
mov dword [ebp + 0x68], ecx
call fcn.0042b486
mov eax, esi
lea ebx, [ebp + 0x54]
call fcn.0041171b
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 0x54]
add eax, 0xfffffff0
call fcn.0040147d
mov ebx, dword [ebp + 0x60]
call fcn.0040ef2d
mov edi, eax
test edi, edi
je 0x4269db
lea esi, [ebp + 0x78]
mov eax, ebx
call fcn.0040f101
mov esi, dword [ebp + 0x74]
push edi
call fcn.004297b3
mov eax, dword [ebp + 0x78]
add eax, 0xfffffff0
call fcn.0040147d
xor eax, eax
inc eax
jmp 0x426db9
push ebx
lea esi, [ebp - 0x104]
call fcn.00420388
mov edi, dword [ebp + 0x74]
xor eax, eax
test byte [edi + 0x6c], 2
mov dword [ebp + 0x38], 0x431fd8
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], eax
je 0x426a51
lea eax, [ebp + 0x38]
push eax
mov ecx, edi
call fcn.00427086
lea eax, [ebp + 0x38]
push eax
mov eax, esi
push eax
call fcn.00420e6e
mov ebx, esi
call fcn.00420de7
push eax
mov eax, dword [ebp + 0x60]
call fcn.0040ee14
call fcn.00420ba9
push eax
mov eax, dword [ebp + 0x60]
call fcn.00410b21
mov ecx, dword [ebp + 0x60]
lea eax, [ebp - 0xac]
call fcn.00410af9
push edi
lea eax, [ebp - 0xc0]
call fcn.00428825
mov esi, dword [ebp + 0x34]
push 6
call fcn.0040679b
mov ebx, eax
test ebx, ebx
je 0x426a71
push 1
lea eax, [ebp - 0x104]
push eax
call fcn.00420924
jmp 0x426aab
push 7
call fcn.0040679b
mov ebx, eax
test ebx, ebx
je 0x426a82
push 1
jmp 0x426a9f
push 8
call fcn.0040679b
mov ebx, eax
test ebx, ebx
je 0x426aab
push 0
lea eax, [ebp - 0x104]
push eax
call fcn.00420924
push 0
lea eax, [ebp - 0x104]
push eax
call fcn.00420a2e
cmp byte [ebp + 0x78], 0
je 0x426add
xor esi, esi
cmp dword [ebp + 0x7c], esi
je 0x426da4
lea eax, [ebp - 0x104]
mov dword [edi + 0xac], 3
mov edi, dword [ebp + 0x7c]
push eax
mov dword [ebp - 0x20], esi
call fcn.00426dde
jmp 0x426da4
lea eax, [ebp - 0x104]
push eax
call fcn.004208f2
test al, al
mov byte [edi + 0x1b4], al
sete al
push edi
mov byte [0x438274], al
call fcn.004270bf
push str.Advinst_
lea esi, [ebp + 0x7c]
call fcn.004015d9
push dword [ebp + 0x60]
lea edi, [ebp + 0x78]
call fcn.0040efab
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, esi
push eax
call fcn.004026e5
mov eax, dword [ebp + 0x78]
add eax, 0xfffffff0
call fcn.0040147d
push dword [ebp + 0x7c]
mov eax, 0x438d50
call fcn.00426521
test ebx, ebx
jne 0x426b6b
cmp byte [0x438d58], bl
je 0x426b6b
mov eax, dword [ebp + 0x74]
xor esi, esi
inc esi
push esi
push 0xcc
mov dword [eax + 0xac], 3
call fcn.0040c5e5
pop ecx
pop ecx
jmp 0x426d99
mov edi, dword [ebp + 0x68]
mov esi, 0xdc
push esi
call fcn.0042b525
mov edi, dword [ebp + 0x74]
test byte [edi + 0x6c], 2
je 0x426ba0
lea eax, [ebp - 0x104]
mov dword [ebp + 0x50], eax
push esi
lea esi, [ebp + 0x48]
mov eax, edi
mov dword [ebp + 0x48], 0x435780
mov dword [ebp + 0x4c], edi
call fcn.00427865
lea eax, [ebp - 0x104]
push eax
mov ebx, edi
call fcn.0042717f
test al, al
je 0x426bb9
xor esi, esi
jmp 0x426d99
mov eax, dword [edi + 0x6c]
shr eax, 2
test al, 1
je 0x426beb
push 0x8a
lea esi, [ebp + 0x48]
mov eax, edi
mov dword [ebp + 0x48], 0x43577c
mov dword [ebp + 0x4c], edi
call fcn.00427865
xor ebx, ebx
cmp byte [ebp + 0x50], bl
je 0x426bed
xor esi, esi
inc esi
jmp 0x426d99
xor ebx, ebx
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.00428a59
test al, al
jne 0x426be3
cmp byte [ebp + 0x67], bl
jne 0x426c15
mov eax, edi
call fcn.0042885f
test al, al
je 0x426c15
call fcn.004288f0
jmp 0x426c29
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.00427f41
cmp eax, ebx
je 0x426c30
mov dword [edi + 0x10], eax
mov esi, eax
jmp 0x426d99
lea eax, [ebp - 0x104]
call fcn.00421344
mov eax, dword [ebp + 0x68]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x60]
mov dword [ebp + 0x1c], eax
mov al, byte [edi + 0x1b4]
mov byte [ebp + 0x28], al
lea eax, [ebp + 0x18]
mov dword [ebp + 8], eax
lea eax, [ebp - 0xa8]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x104]
mov dword [ebp + 0x10], eax
push 0xec
lea esi, [ebp + 4]
mov eax, edi
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 4], 0x435774
call fcn.00427865
cmp byte [ebp + 0x14], bl
je 0x426be3
mov esi, edi
call fcn.00427255
push edi
lea eax, [ebp - 0x104]
call fcn.00427281
cmp byte [edi + 0x1ac], bl
mov dword [ebp + 0x78], eax
je 0x426cb3
or esi, 0xffffffff
jmp 0x426d99
mov eax, dword [ebp + 0x58]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00401c33
add eax, 0x10
mov dword [ebp + 0x5c], eax
cmp dword [eax - 0xc], ebx
jne 0x426cfa
lea eax, [ebp - 0xf4]
lea edi, [ebp + 0x5c]
call fcn.00401bc0
mov eax, edi
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.004130c2
pop ecx
pop ecx
call fcn.00401bc0
mov eax, dword [ebp + 0x58]
add eax, 0xfffffff0
call fcn.0040147d
mov edi, dword [ebp + 0x74]
mov eax, dword [ebp + 0x68]
call fcn.0042b55a
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x18]
call fcn.00417fad
test byte [edi + 0x6c], 2
je 0x426d31
cmp dword [ebp + 0x78], ebx
jne 0x426d31
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x18]
call fcn.00417fd8
push edi
lea eax, [ebp - 0x18]
call fcn.00427743
mov dword [ebp + 0x78], eax
cmp dword [ebp + 0x78], 0xffffffff
jne 0x426d42
push 0x438d0c
call fcn.004221d4
pop ecx
cmp dword [ebp + 0x78], ebx
jne 0x426d60
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp + 0x5c]
push eax
mov eax, edi
call fcn.00427893
mov dword [ebp + 0x78], eax
mov eax, edi
call fcn.00429d6f
mov eax, dword [ebp + 0x60]
mov dword [ebp + 0x30], eax
push 0x10a
lea esi, [ebp + 0x2c]
mov eax, edi
mov dword [ebp + 0x2c], 0x43576c
call fcn.00427865
lea edi, [ebp - 8]
call fcn.00418760
mov eax, dword [ebp + 0x5c]
add eax, 0xfffffff0
call fcn.0040147d
mov esi, dword [ebp + 0x78]
mov eax, dword [ebp + 0x7c]
add eax, 0xfffffff0
call fcn.0040147d
lea edi, [ebp + 0x3c]
call fcn.00413d69
lea edi, [ebp - 0x104]
call fcn.00426dc3
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc