Function at 0x403860
Capabilities:
Get common file path
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1080
call fcn.004118b0
mov eax, dword [0x41a07c]
xor eax, esp
mov dword [esp + 0x107c], eax
mov eax, dword [ebx + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3395
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push 0
push 0
push 0x6e
push 0x19
push 0
push eax
call esi
mov ecx, dword [ebx + 4]
push 0x3394
push ecx
call edi
push 1
push 0
push 0
push 0x50
push 0x19
push 0
push eax
call esi
mov edx, dword [ebx + 0x3c]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1036
push edx
call esi
mov edx, dword [ebx + 0x3c]
mov eax, dword [0x41c8b0]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x1061
push edx
mov dword [esp + 0x28], 6
mov dword [esp + 0x30], 0x19a
mov dword [esp + 0x34], eax
call esi
mov edx, dword [ebx + 0x3c]
mov eax, dword [0x41c8ac]
lea ecx, [esp + 0x18]
push ecx
push 1
push 0x1061
push edx
mov dword [esp + 0x28], 6
mov dword [esp + 0x30], 0x64
mov dword [esp + 0x34], eax
call esi
mov eax, dword [ebx + 0x3c]
push 0
push 2
push 0x101c
push eax
call esi
mov ecx, dword [ebx + 4]
push 0x3394
push ecx
call edi
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebx + 4]
push 0x339e
push edx
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 4]
push 0x3395
push eax
call edi
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 4]
push 0x3395
push ecx
call edi
push 0
push 0
push 0x40a
push eax
mov dword [esp + 0x20], eax
call esi
mov edx, dword [esp + 0x10]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffffff7
or eax, 1
push eax
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [esp + 0x10]
push 0x640001
push 0
push 0x401
push ecx
call esi
mov edx, dword [ebx + 0x3c]
push 0
push 0
push 0x1004
push edx
call esi
mov dword [esp + 0xc], eax
test eax, eax
jle 0x403cf9
mov eax, dword [ebx + 4]
push 1
push 0x339c
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [0x41c884]
mov edx, dword [ebx + 4]
push ecx
push 0x339c
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp dword [esp + 0xc], 0
mov dword [esp + 8], 0
jle 0x403b0b
mov dword [esp + 0x14], 0x64
jmp 0x403a36
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebx + 0x34], 0
je 0x403b0b
mov edx, dword [esp + 8]
lea ecx, [esp + 0x44]
push ecx
lea eax, [esp + 0xc84]
push edx
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x3c]
push 0x1073
push eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x6c], 0x200
call esi
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ecx
mov dword [ebx + 0x24], eax
mov edx, dword [0x41c89c]
push edx
inc eax
push eax
mov dword [esp + 0x14], eax
mov eax, dword [0x41c8a0]
push eax
lea ecx, [esp + 0x90]
push 0x4170e8
push ecx
call fcn.00408ec0
mov eax, dword [ebx + 4]
add esp, 0x18
lea edx, [esp + 0x80]
push edx
push 0x3394
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push ebx
push 0
push 1
mov ecx, 0x403d10
lea esi, [esp + 0xc8c]
call fcn.004052f0
mov esi, dword [esp + 0x20]
mov eax, esi
cdq
idiv dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0
push eax
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 8]
add esi, 0x64
cmp eax, dword [esp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 0x14], esi
jl 0x403a30
lea edx, [esp + 0x480]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x403bfc
lea edi, [esp + 0x480]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403b30
mov eax, dword [0x4170e4]
lea ecx, [esp + 0x480]
push ecx
mov ecx, ebx
mov dword [edi], eax
call fcn.00403500
push 0x400
lea edx, [esp + 0x484]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x403bf6
mov eax, 0x400
lea ecx, [esp + 0x480]
lea esp, [esp]
cmp word [ecx], 0
je 0x403b90
add ecx, 2
sub eax, 1
jne 0x403b80
jmp 0x403be7
test eax, eax
je 0x403be7
mov edx, 0x400
sub edx, eax
mov ecx, 0x400
sub ecx, edx
lea eax, [esp + edx*2 + 0x480]
je 0x403bdf
mov edi, 0x417100
lea esi, [ecx + edx + 0x7ffffbff]
sub edi, eax
lea esp, [esp]
test esi, esi
je 0x403bdb
movzx edx, word [edi + eax]
test dx, dx
je 0x403bdb
mov word [eax], dx
dec ecx
add eax, 2
dec esi
test ecx, ecx
jne 0x403bc0
jmp 0x403bdf
test ecx, ecx
jne 0x403be2
sub eax, 2
xor ecx, ecx
mov word [eax], cx
lea edx, [esp + 0x480]
push edx
mov ecx, ebx
call fcn.00403500
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebx + 0x34], 0
je 0x403c38
mov eax, dword [0x41c890]
mov ecx, dword [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x88]
push str._d__s
push edx
call fcn.00408ec0
mov ecx, dword [ebx + 4]
add esp, 0x10
lea eax, [esp + 0x80]
push eax
push 0x3394
push ecx
jmp 0x403cf3
mov edx, dword [ebx + 4]
push 0x339d
push edx
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
mov eax, dword [ebx + 4]
push 0x339e
push eax
call edi
push 0
push eax
call esi
mov ecx, dword [ebx + 4]
push 0x339c
push ecx
call edi
push 0
push eax
call esi
mov edx, dword [ebx + 4]
push 0x3395
push edx
call edi
push 0
push eax
call esi
mov eax, dword [ebx + 4]
push 0x3394
push eax
call edi
push 1
push 0
push 0
push 0x69
push 0x19
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x41c8c4]
mov edx, dword [ebx + 4]
push ecx
push 0x3394
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [ebx + 0x20]
mov ecx, dword [0x41c8b8]
push eax
push ecx
lea edx, [esp + 0x88]
push str._s_:__d
push edx
call fcn.00408ec0
mov eax, dword [ebx + 4]
add esp, 0x10
push 5
push 0x7530
push eax
call edi
push eax
call esi
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x80]
push ecx
push 0x7530
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [esp + 0x1084]
pop edi
pop esi
xor ecx, esp
call fcn.00408c7e
mov esp, ebp
pop ebp
ret