Function at 0x4047dc
Capabilities:
Get common file path

Disassembly:
mov eax, 0x411ce1
call fcn.00402a4a
sub esp, 0x240
push ebx
push esi
mov esi, ecx
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [0x4737f4]
inc ecx
push edi
mov dword [ebp - 0x28], esi
mov edi, 0x4737f8
test cl, al
jne 0x40482d
or eax, ecx
mov dword [0x4737f4], eax
mov dword [ebp - 4], ecx
mov ecx, edi
call fcn.004057e0
mov byte [ebp - 4], 1
push 0x4136b1
call fcn.0040150c
pop ecx
mov byte [ebp - 4], bl
mov ecx, dword [0x42bf28]
xor edx, edx
mov eax, ecx
mov dword [ebp - 0x20], 0x15
div dword [ebp - 0x20]
mov dword [edx*4 + 0x42bf28], ecx
inc dword [0x42bf28]
cmp dword [0x473800], 0
jbe 0x40486e
push edi
mov ecx, esi
call fcn.0040525c
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
jmp 0x404a4c
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x24]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x404894
push ebx
push 0x42c7ec
push 0x42c7f4
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x248]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [eax - 1]
cmp ecx, 0x103
ja 0x4048e3
cmp word [ebp + eax*2 - 0x24a], 0x5c
jne 0x4048c6
xor ecx, ecx
mov word [ebp + eax*2 - 0x24a], cx
push 0xffffffffffffffff
lea eax, [ebp - 0x248]
push eax
mov ecx, edi
call fcn.00405317
push edi
mov ecx, esi
call fcn.0040525c
jmp 0x40485f
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0xffffffffffffffff
push ebx
call fcn.004052a7
mov dword [ebp - 4], 3
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00404541
add esp, 0xc
mov dword [ebp - 4], 4
cmp dword [ebp - 0x14], 0
jbe 0x4049a6
mov ecx, dword [0x42bf28]
mov eax, ecx
xor edx, edx
div dword [ebp - 0x20]
push 0xffffffffffffffff
push 0x42c950
mov dword [edx*4 + 0x42bf28], ecx
inc dword [0x42bf28]
lea ecx, [ebp - 0x34]
call fcn.004052a7
mov byte [ebp - 4], 5
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004054fc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.004055a6
mov ecx, dword [ebp - 0x1c]
call fcn.00403cbe
test al, al
jne 0x404978
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00403c34
pop ecx
test al, al
jne 0x4049a6
cmp dword [ebp - 0x18], 0
mov ecx, edi
jne 0x404987
call fcn.00405784
jmp 0x404992
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.00405317
push edi
mov ecx, esi
call fcn.0040525c
mov dword [ebp - 0x10], 1
jmp 0x404a41
mov eax, dword [0x4718e4]
test eax, eax
je 0x4049c4
push 0x105
lea ecx, [ebp - 0x248]
push ecx
push 0x42c95c
call eax
jmp 0x4049c6
mov eax, ebx
dec eax
cmp eax, 0x103
ja 0x404a24
push 0xffffffffffffffff
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405317
mov ecx, dword [ebp - 0x1c]
call fcn.00403cbe
test al, al
jne 0x4049f9
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00403c34
pop ecx
test al, al
jne 0x404a24
cmp dword [ebp - 0x18], 0
mov ecx, edi
jne 0x404a08
call fcn.00405784
jmp 0x404a13
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.00405317
push edi
mov ecx, esi
call fcn.0040525c
mov dword [ebp - 0x10], 1
jmp 0x404a41
push 0xffffffffffffffff
push 0x42c880
mov ecx, edi
call fcn.00405317
push edi
mov ecx, esi
call fcn.0040525c
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1c]
call fcn.004055a6
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret