Function at 0x40620e
Capabilities:
Hide graphical window
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x708
push ebx
lea eax, [ebp - 0x414]
push esi
lea ecx, [ebp - 0x514]
push edi
xor esi, esi
push eax
lea edx, [ebp - 0x10c]
push ecx
lea eax, [ebp - 0xc]
push edx
mov edi, dword [ebp + 8]
push eax
mov dword [0x4082b4], esi
push edi
call fcn.00407966
add esp, 0x14
lea eax, [ebp - 0x514]
lea ecx, [ebp - 0x10c]
push eax
push ecx
call fcn.004078f6
add esp, 8
lea ecx, [ebp - 0x414]
lea edx, [ebp - 0x10c]
push ecx
push edx
call fcn.00407911
mov word [0x43a962], si
add esp, 8
push edi
call fcn.00401a4f
mov cx, word [0x43a962]
add esp, 4
cmp cx, si
je 0x4062ad
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.00406029
add esp, 8
push edi
call fcn.00401ba6
add esp, 4
jmp 0x4064b3
lea eax, [ebp - 8]
push eax
call fcn.004012bf
add esp, 4
lea eax, [ebp - 8]
push eax
push 0x4081ac
call fcn.00401471
add esp, 8
test al, al
jne 0x4062f8
mov cx, word [0x43a962]
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.00406029
add esp, 8
push edi
call fcn.00401ba6
add esp, 4
mov eax, 8
jmp 0x4064ba
mov esi, dword [ebp + 0xc]
push esi
call fcn.004078d7
add esp, 4
test eax, eax
je 0x406311
push esi
call fcn.00401a1a
add esp, 4
push 0x40601c
call fcn.00402156
add esp, 4
push 0x405cd4
call fcn.0040214c
add esp, 4
push 0x405e83
call fcn.00402160
add esp, 4
lea eax, [ebp - 8]
push eax
call fcn.004029b7
mov cx, word [0x43a962]
add esp, 4
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.00406029
mov bx, word [0x43a962]
add esp, 8
push edi
call fcn.00401ba6
add esp, 4
mov edi, dword [ebp + 0x10]
push edi
call fcn.004078d7
add esp, 4
test eax, eax
je 0x4064b3
test bx, bx
jne 0x4064b3
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
lea eax, [ebp - 0x214]
push eax
call fcn.004078f6
add esp, 8
lea eax, [ebp - 0x314]
push 0x100
push 0
push eax
call fcn.00407942
add esp, 0xc
mov eax, dword [0x409f24]
push 6
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x214]
push ecx
call fcn.00405fec
add esp, 0xc
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406440
lea eax, [ebp - 0x214]
lea ecx, [ebp - 0x10c]
push eax
push ecx
mov eax, dword [0x409f08]
lea ecx, [ebp - 0x708]
add eax, 0xb41
mov esi, 0x145a
push eax
push ecx
call fcn.00407e4c
add esp, 0x10
lea ecx, [ebp - 0x708]
mov eax, dword [0x409f24]
push ecx
push esi
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 1
mov eax, dword [0x409f24]
push esi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
jmp 0x4064ba
cmp dword [0x40a048], 0
je 0x406464
push dword [ebp + 0x14]
call fcn.004078d7
add esp, 4
test eax, eax
jne 0x406464
push edi
push dword [ebp + 0x14]
call fcn.004078f6
add esp, 8
cmp ebx, 0xffffffff
je 0x406486
push dword [ebp + 0x14]
call fcn.004078d7
add esp, 4
test eax, eax
je 0x406486
push esi
push dword [ebp + 0x14]
call fcn.00405ecf
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x40648e
mov eax, ebx
jmp 0x4064ba
cmp bx, 0xb6e
jne 0x4064ac
lea eax, [ebp - 0x10c]
push eax
push ebx
call fcn.00406029
add esp, 8
mov eax, 1
jmp 0x4064ba
mov eax, 1
jmp 0x4064ba
movzx eax, word [0x43a962]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret