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

Disassembly:
mov eax, dword [str._KDC210_]
sub esp, 0x56c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x57c]
push edi
push eax
mov ebp, ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x41315d
mov ecx, ebp
call fcn.00407f60
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x56c
ret 0x10
mov ecx, dword [ebp + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebp + 0xa0]
push 0
push 1
push 1
push 0
call fcn.00449910
push 0
mov ecx, ebp
call fcn.004151a0
mov ecx, ebp
call fcn.0041a530
mov ecx, ebp
call fcn.0041a670
mov edx, dword [ebp + 4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov ebx, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x2a4]
test eax, eax
je 0x4131c8
mov ecx, ebp
call fcn.00412dd0
test esi, esi
je 0x4131d1
cmp byte [esi], 0
jne 0x4131eb
lea eax, [esp + 0x240]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea esi, [esp + 0x240]
mov cl, byte [0x4caf4c]
xor eax, eax
mov byte [esp + 0x30], cl
mov ecx, 0x41
lea edi, [esp + 0x31]
mov dword [esp + 0x14], eax
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x138]
push edx
push eax
push 0x105
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
je 0x41323c
lea ecx, [esp + 0x30]
push eax
push ecx
call esi
mov edx, dword [esp + 0x14]
mov byte [edx], 0
lea eax, [esp + 0x30]
push 0x2a
push eax
call fcn.00498920
add esp, 8
test eax, eax
jne 0x4132a5
lea ecx, [esp + 0x30]
push 0x3f
push ecx
call fcn.00498920
add esp, 8
test eax, eax
jne 0x4132a5
lea edx, [esp + 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x137]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x413291
lea eax, [esp + 0x138]
push 0x4be838
push eax
call edi
lea ecx, [esp + 0x30]
lea edx, [esp + 0x138]
push ecx
push edx
call edi
mov byte [esp + 0x30], 0
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x41332c
mov ecx, dword [esp + 0x1c]
push ecx
call ebx
push 0x105
call fcn.004985f0
add esp, 4
mov edi, eax
lea edx, [esp + 0x138]
push edi
push edx
call dword [sym.imp.USER32.dll_OemToCharA]
mov eax, dword [ebp + 0x90]
push edi
push 0x20b
lea ecx, [esp + 0x458]
push eax
push ecx
call fcn.0043e2a0
add esp, 0x10
push edi
call fcn.00498600
mov edx, dword [str.ACDSee_32]
mov ecx, dword [ebp + 4]
add esp, 4
lea eax, [esp + 0x450]
push 0
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x56c
ret 0x10
mov ecx, ebp
call fcn.0041be70
mov ecx, ebp
call fcn.004083a0
lea edx, [esp + 0x30]
lea eax, [ebp + 0x1a4]
push edx
push eax
mov dword [ebp + 0x6e8], 0
call esi
movsx eax, byte [esp + 0x138]
push eax
call fcn.004990a0
add esp, 4
lea esi, [ebp + 0xa4]
push esi
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x584]
test eax, eax
je 0x413391
mov eax, dword [0x4cab50]
test eax, eax
je 0x413391
push esi
mov ecx, ebp
call fcn.00417990
mov ecx, ebp
call fcn.0041b790
mov ecx, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xb
push ecx
call edi
mov edx, dword [ebp + 8]
push 0
push 0
push 0x1009
push edx
call edi
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call ebx
mov edi, 1
lea eax, [ebp + 0x1a4]
lea ebx, [ebp + 0x47c]
push edi
push eax
push esi
mov ecx, ebx
call fcn.0041e410
mov ecx, ebp
call fcn.00412c70
mov ecx, ebp
call fcn.00412fc0
mov ecx, ebp
call fcn.0041bd40
mov eax, dword [0x4caa70]
test eax, eax
jne 0x413455
mov eax, dword [ebp + 0x484]
xor edx, edx
test eax, eax
jle 0x413455
or esi, 0xffffffff
cmp edx, dword [ebx + 8]
jge 0x413422
test edx, edx
jl 0x413422
mov eax, dword [ebx + 4]
mov eax, dword [eax + edx*4]
jmp 0x413424
xor eax, eax
mov ecx, dword [eax + 4]
dec ecx
je 0x413443
dec ecx
je 0x41343e
dec ecx
je 0x413435
mov dword [eax + 0x4c], esi
jmp 0x41344a
mov dword [eax + 0x4c], 3
jmp 0x41344a
mov dword [eax + 0x4c], edi
jmp 0x41344a
mov dword [eax + 0x4c], 2
mov eax, dword [ebp + 0x484]
inc edx
cmp edx, eax
jl 0x413411
mov eax, dword [ebp + 0x484]
xor edi, edi
test eax, eax
jle 0x413487
cmp edi, dword [ebx + 8]
jge 0x413472
test edi, edi
jl 0x413472
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
jmp 0x413474
xor eax, eax
push eax
mov ecx, ebp
call fcn.00417300
mov eax, dword [ebp + 0x484]
inc edi
cmp edi, eax
jl 0x413461
xor esi, esi
mov dword [esp + 0x10], esi
lea edx, [esi + 0x41]
lea eax, [esp + 0x24]
push edx
push str._c:_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
call edi
lea edx, [esp + 0x24]
push edx
call edi
cmp eax, 1
je 0x413573
push 0x64
call fcn.004985f0
add esp, 4
test eax, eax
je 0x4134e3
lea ecx, [esp + 0x24]
push 3
push ecx
mov ecx, eax
call fcn.0041d2e0
mov dword [esp + 0x18], eax
jmp 0x4134ef
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [eax + 0x4c], 3
je 0x413573
mov ecx, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
lea edx, [ecx + 1]
cmp edi, edx
jne 0x413563
mov eax, dword [ebx + 0x14]
add eax, ecx
lea ecx, [eax*4 + 4]
push ecx
call fcn.004985f0
mov edx, dword [ebx + 0xc]
mov esi, dword [ebx + 4]
mov dword [esp + 0x24], eax
mov edi, eax
lea ecx, [edx*4 + 4]
add esp, 4
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
push ecx
call fcn.00498600
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
add esp, 4
add ecx, eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 4], edx
mov dword [ebx + 0xc], 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 0x41348d
lea eax, [ebp + 0xa4]
push 2
push eax
mov dword [ebp + 0x6e0], 1
call fcn.00498c50
add esp, 8
mov ecx, ebp
neg eax
sbb eax, eax
neg eax
mov dword [ebp + 0x6e4], eax
call fcn.00417700
push 0
push 0
mov ecx, ebp
call fcn.00416160
mov esi, dword [esp + 0x58c]
mov dword [esp + 0x10], 0
test esi, esi
je 0x41363c
mov eax, dword [ebp + 0x484]
xor edi, edi
test eax, eax
jle 0x41363c
cmp edi, dword [ebx + 8]
jge 0x4135ea
test edi, edi
jl 0x4135ea
mov eax, dword [ebx + 4]
mov eax, dword [eax + edi*4]
jmp 0x4135ec
xor eax, eax
mov ecx, dword [eax + 0x5c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x413608
mov eax, dword [ebp + 0x484]
inc edi
cmp edi, eax
jl 0x4135d9
jmp 0x41363c
cmp edi, dword [ebx + 8]
jge 0x413619
test edi, edi
jl 0x413619
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
jmp 0x41361b
xor eax, eax
mov ecx, dword [eax + 0x50]
test ecx, ecx
jl 0x41363c
cmp edi, dword [ebx + 8]
jge 0x413633
test edi, edi
jl 0x413633
mov eax, dword [ebx + 4]
mov edi, dword [eax + edi*4]
jmp 0x413635
xor edi, edi
mov ecx, dword [edi + 0x50]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
call fcn.004138b0
mov eax, dword [ebp + 8]
push eax
call fcn.004048d0
mov ecx, dword [ebp + 8]
add esp, 4
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
lea edi, [ebp + 0xa4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor edx, edx
cmp eax, 3
setg dl
mov eax, edx
mov ecx, ebp
push eax
push 0x4e95
call fcn.004176c0
lea eax, [ebp + 0x1a4]
push eax
lea eax, [esp + 0x34c]
push edi
push eax
call fcn.0043c6e0
mov edx, dword [ebp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x348]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x14]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, ebp
mov dword [ebp + 0x2b8], 0
call fcn.0041a6c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x56c
ret 0x10