Function at 0x411e90
Capabilities:
Get common file path
Get disk information
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4d65de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x670
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.user32.dll_KillTimer]
mov ecx, dword [ebp + 0x208]
push 0
push 0
call fcn.0045d120
push 0
mov ecx, ebp
call fcn.00414140
mov ecx, ebp
call fcn.00419cf0
mov ecx, ebp
call fcn.00419e50
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.user32.dll_UpdateWindow]
push 0x7f02
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
push eax
call dword [sym.imp.user32.dll_SetCursor]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x40c]
test eax, eax
je 0x411f16
mov ecx, ebp
call fcn.00411a80
mov edx, dword [esp + 0x690]
test edx, edx
je 0x411f26
cmp byte [edx], 0
jne 0x411f40
lea edx, [esp + 0x348]
push edx
push 0x105
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x348]
mov al, byte [0x4fbe40]
mov ecx, 0x41
mov byte [esp + 0x138], al
xor eax, eax
lea edi, [esp + 0x139]
mov dword [esp + 0x14], eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x30]
push ecx
push eax
push 0x105
push edx
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x411f94
lea ecx, [esp + 0x138]
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrcpy]
mov edx, dword [esp + 0x14]
mov byte [edx], 0
lea eax, [esp + 0x138]
push 0x2a
push eax
call fcn.004c81f0
add esp, 8
test eax, eax
jne 0x411ffd
lea ecx, [esp + 0x138]
push 0x3f
push ecx
call fcn.004c81f0
add esp, 8
test eax, eax
jne 0x411ffd
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.kernel32.dll_lstrlen]
mov cl, byte [esp + eax + 0x2f]
mov esi, dword [sym.imp.kernel32.dll_lstrcat]
cmp cl, 0x5c
je 0x411fe6
lea eax, [esp + 0x30]
push 0x4ee610
push eax
call esi
lea ecx, [esp + 0x138]
lea edx, [esp + 0x30]
push ecx
push edx
call esi
mov byte [esp + 0x138], 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x412090
mov edi, dword [sym.imp.user32.dll_OemToCharA]
mov ebx, dword [sym.imp.user32.dll_MessageBoxA]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.user32.dll_SetCursor]
push 0x105
call fcn.004c7e90
add esp, 4
mov esi, eax
lea edx, [esp + 0x30]
push esi
push edx
call edi
mov eax, dword [ebp + 0x200]
push esi
push 0x20b
lea ecx, [esp + 0x55c]
push eax
push ecx
call fcn.00444d00
push esi
call fcn.004c7e56
mov edx, dword [0x4ee054]
mov ecx, dword [ebp + 8]
add esp, 0x14
lea eax, [esp + 0x554]
push 5
push edx
push eax
push ecx
call ebx
cmp eax, 2
je 0x41217a
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x41201c
mov ecx, ebp
call fcn.0041bba0
lea eax, [esp + 0x138]
lea esi, [ebp + 0x30c]
push eax
push esi
mov dword [ebp + 0x424], 0xffffffff
call dword [sym.imp.kernel32.dll_lstrcpy]
movsx ecx, byte [esp + 0x30]
push ecx
call fcn.004c8393
add esp, 4
lea edi, [ebp + 0x20c]
push edi
push 0x100
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x694]
test eax, eax
je 0x4120f2
mov eax, dword [0x4fb924]
test eax, eax
je 0x4120f2
push edi
mov ecx, ebp
call fcn.00416b80
mov ecx, ebp
call fcn.0041b440
mov edx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.user32.dll_SendMessageA]
push 0
push 0
push 0xb
push edx
call ebx
mov eax, dword [ebp + 0xc]
push 0
push 0
push 0x1009
push eax
call ebx
push 0x7f02
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
push eax
call dword [sym.imp.user32.dll_SetCursor]
lea ebx, [ebp + 0x490]
push 1
push esi
push edi
mov ecx, ebx
call fcn.0041e6d0
mov ecx, ebp
call fcn.004118e0
mov ecx, ebp
call fcn.00411ca0
mov ecx, ebp
call fcn.0041ba50
mov eax, dword [0x4fb83c]
test eax, eax
jne 0x4121bc
mov eax, dword [ebp + 0x498]
xor ecx, ecx
test eax, eax
jle 0x4121bc
cmp ecx, dword [ebx + 8]
jge 0x412181
test ecx, ecx
jl 0x412181
mov edx, dword [ebx + 4]
mov eax, dword [edx + ecx*4]
jmp 0x412183
xor eax, eax
jmp 0x4124a2
xor eax, eax
mov edx, dword [eax + 8]
dec edx
je 0x4121aa
dec edx
je 0x4121a1
dec edx
je 0x412198
mov dword [eax + 0x58], 0xffffffff
jmp 0x4121b1
mov dword [eax + 0x58], 3
jmp 0x4121b1
mov dword [eax + 0x58], 1
jmp 0x4121b1
mov dword [eax + 0x58], 2
mov eax, dword [ebp + 0x498]
inc ecx
cmp ecx, eax
jl 0x412169
mov eax, dword [ebp + 0x498]
xor edi, edi
test eax, eax
jle 0x4121ee
cmp edi, dword [ebx + 8]
jge 0x4121d9
test edi, edi
jl 0x4121d9
mov eax, dword [ebx + 4]
mov eax, dword [eax + edi*4]
jmp 0x4121db
xor eax, eax
push eax
mov ecx, ebp
call fcn.00416400
mov eax, dword [ebp + 0x498]
inc edi
cmp edi, eax
jl 0x4121c8
xor esi, esi
mov dword [esp + 0x10], esi
lea ecx, [esi + 0x41]
lea edx, [esp + 0x24]
push ecx
push 0x4ee708
push edx
call dword [sym.imp.user32.dll_wsprintfA]
mov edi, dword [sym.imp.kernel32.dll_GetDriveTypeA]
add esp, 0xc
lea eax, [esp + 0x24]
push eax
call edi
lea ecx, [esp + 0x24]
push ecx
call edi
cmp eax, 1
je 0x4122e7
push 0x70
call fcn.004c7e90
add esp, 4
mov dword [esp + 0x20], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x688], edi
je 0x412257
lea edx, [esp + 0x24]
push 3
push edx
mov ecx, eax
call fcn.0041d480
mov dword [esp + 0x18], eax
jmp 0x41225d
mov dword [esp + 0x18], edi
mov eax, edi
cmp eax, edi
mov dword [esp + 0x688], 0xffffffff
mov dword [eax + 0x58], 3
je 0x4122e7
mov ecx, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
lea edx, [ecx + 1]
cmp edi, edx
jne 0x4122d7
add ecx, dword [ebx + 0x14]
lea eax, [ecx*4 + 4]
push eax
call fcn.004c7e90
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebx + 4]
mov edi, eax
mov dword [esp + 0x24], eax
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
push eax
call fcn.004c7e56
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
add esp, 8
add eax, edx
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 4], ecx
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov dword [edx + ecx*4], eax
mov eax, dword [ebx + 8]
inc eax
mov dword [ebx + 8], eax
inc esi
cmp esi, 0x1a
mov dword [esp + 0x10], esi
jl 0x4121f4
lea eax, [ebp + 0x20c]
push eax
lea eax, [esp + 0x454]
push eax
call dword [sym.imp.kernel32.dll_lstrcpy]
lea ecx, [esp + 0x450]
push ecx
call fcn.00443a50
add esp, 4
xor esi, esi
mov ecx, ebp
mov dword [ebp + 0x844], 1
push 1
mov dword [ebp + 0x848], esi
call fcn.00416840
push 4
mov ecx, ebp
call fcn.004151f0
mov ecx, ebp
call fcn.00419cf0
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x69c]
test esi, esi
je 0x4123c3
mov eax, dword [ebp + 0x498]
xor edi, edi
test eax, eax
jle 0x4123c3
cmp edi, dword [ebx + 8]
jge 0x412371
test edi, edi
jl 0x412371
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
jmp 0x412373
xor eax, eax
mov eax, dword [eax + 0x68]
push eax
push esi
call dword [sym.imp.kernel32.dll_lstrcmpi]
test eax, eax
je 0x41238f
mov eax, dword [ebp + 0x498]
inc edi
cmp edi, eax
jl 0x412360
jmp 0x4123c3
cmp edi, dword [ebx + 8]
jge 0x4123a0
test edi, edi
jl 0x4123a0
mov eax, dword [ebx + 4]
mov eax, dword [eax + edi*4]
jmp 0x4123a2
xor eax, eax
mov ecx, dword [eax + 0x5c]
test ecx, ecx
jl 0x4123c3
cmp edi, dword [ebx + 8]
jge 0x4123ba
test edi, edi
jl 0x4123ba
mov ecx, dword [ebx + 4]
mov edi, dword [ecx + edi*4]
jmp 0x4123bc
xor edi, edi
mov edx, dword [edi + 0x5c]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00412670
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00404bd0
mov edx, dword [ebp + 0xc]
add esp, 4
push edx
call dword [sym.imp.user32.dll_UpdateWindow]
lea edi, [ebp + 0x20c]
push edi
call dword [sym.imp.kernel32.dll_lstrlen]
xor ecx, ecx
cmp eax, 3
setg cl
mov eax, ecx
mov ecx, ebp
push eax
push 0x4e95
call fcn.00416800
lea eax, [ebp + 0x30c]
lea edx, [esp + 0x240]
push eax
push edi
push edx
call fcn.00442e30
mov ecx, dword [ebp + 0x20]
mov edi, dword [sym.imp.user32.dll_SendMessageA]
add esp, 0xc
lea eax, [esp + 0x240]
push eax
push 0xffffffffffffffff
push 0x158
push ecx
call edi
cmp eax, 0xffffffff
je 0x41244f
mov edx, dword [ebp + 0x20]
push 0
push eax
push 0x144
push edx
call edi
mov ecx, dword [ebp + 0x20]
lea eax, [esp + 0x240]
push eax
push 0
push 0x14a
push ecx
call edi
mov edx, dword [ebp + 0x20]
push 0
push eax
push 0x14e
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.user32.dll_SetCursor]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x14]
mov ecx, ebp
mov dword [ebp + 0x428], 0
call fcn.00419eb0
mov ecx, ebp
call fcn.00419d80
mov eax, 1
mov ecx, dword [esp + 0x680]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x67c
ret 0x10