Function at 0x404fa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x415e23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2f8
mov eax, dword [0x41b0e0]
push ebx
push esi
push edi
mov dword [esp + 0x2fc], eax
mov esi, ecx
xor eax, eax
xor ebx, ebx
mov byte [esp + 0xe8], bl
mov ecx, 0x40
lea edi, [esp + 0xe9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xe8]
push eax
push 0x104
mov dword [esp + 0x6c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov byte [esp + 0x1f0], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x1f1]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xe8]
push ecx
stosw word es:[edi], ax
lea edx, [esp + 0x1f4]
push str._slocalstb.tco
push edx
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x1fc]
push 0x41763c
push eax
call fcn.0040c093
mov edi, eax
add esp, 0x14
cmp edi, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
je 0x4050fa
cmp dword [esi + 0x15a020], ebx
mov dword [esp + 0x5c], ebx
jle 0x4050f1
add esi, 0x15a028
mov eax, dword [esi]
cmp eax, ebx
jle 0x4050d7
mov ecx, dword [esi - 4]
push eax
push ecx
push str._d__d
push edi
call fcn.0040c75a
mov eax, dword [esi]
mov ecx, dword [esp + 0x68]
add esp, 0x10
cmp eax, ecx
jle 0x4050b3
mov edx, dword [esi - 4]
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], edx
jmp 0x4050d7
cmp eax, dword [esp + 0x60]
jle 0x4050c6
mov dword [esp + 0x60], eax
mov eax, dword [esi - 4]
mov dword [esp + 0x38], eax
jmp 0x4050d7
cmp eax, dword [esp + 0x34]
jle 0x4050d7
mov ecx, dword [esi - 4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
mov ecx, dword [edx + 0x15a020]
inc eax
add esi, 8
cmp eax, ecx
mov dword [esp + 0x5c], eax
jl 0x405083
push edi
call fcn.0040bffd
add esp, 4
call fcn.0040c737
cdq
mov ecx, 0xb
idiv ecx
cmp edx, ebx
jne 0x40523d
mov esi, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x69], edx
mov dword [esp + 0x6d], edx
mov dword [esp + 0x71], edx
mov dword [esp + 0x75], edx
mov dword [esp + 0x79], edx
mov dword [esp + 0x7d], edx
push esi
mov dword [esp + 0x85], edx
lea eax, [esp + 0x6c]
mov word [esp + 0x89], dx
push str._06d
push eax
mov byte [esp + 0x74], bl
mov byte [esp + 0x93], dl
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, ebx
jle 0x4054f4
lea ecx, [esp + 0xa8]
call fcn.0040afd0
push 9
mov edi, 0xf
push str.uinfo.tco
lea ecx, [esp + 0x44]
mov dword [esp + 0x314], ebx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00402370
lea eax, [esp + 0xe8]
mov byte [esp + 0x30c], 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4051b5
sub eax, edx
push eax
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402370
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0x314], 2
call fcn.0040b040
mov eax, dword [esp + 0x28]
mov esi, 0x10
cmp eax, esi
jb 0x405208
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040c1b1
add esp, 4
cmp dword [esp + 0x54], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov byte [esp + 0x30c], bl
jb 0x40522e
mov edx, dword [esp + 0x40]
push edx
call fcn.0040c1b1
add esp, 4
push pe_nt_image_headers32
lea eax, [esp + 0x6c]
push eax
jmp 0x4054c7
cmp edx, 1
je 0x405398
cmp edx, 2
je 0x405398
mov esi, dword [esp + 0x30]
xor ecx, ecx
mov dword [esp + 0x89], ecx
mov dword [esp + 0x8d], ecx
mov dword [esp + 0x91], ecx
mov dword [esp + 0x95], ecx
mov dword [esp + 0x99], ecx
mov dword [esp + 0x9d], ecx
push esi
mov dword [esp + 0xa5], ecx
lea edx, [esp + 0x8c]
mov word [esp + 0xa9], cx
push str._06d
push edx
mov byte [esp + 0x94], bl
mov byte [esp + 0xb3], cl
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, ebx
jle 0x4054f4
lea ecx, [esp + 0xc8]
call fcn.0040afd0
push str.uinfo.tco
lea ecx, [esp + 0x14]
mov dword [esp + 0x310], 6
call fcn.004024b0
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x310], 7
call fcn.004024b0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0xd0]
mov byte [esp + 0x314], 8
call fcn.0040b040
mov eax, dword [esp + 0x54]
mov esi, 0x10
cmp eax, esi
jb 0x405331
mov eax, dword [esp + 0x40]
push eax
call fcn.0040c1b1
add esp, 4
cmp dword [esp + 0x28], esi
mov edi, 0xf
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov byte [esp + 0x30c], 6
jb 0x40535d
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040c1b1
add esp, 4
push pe_nt_image_headers32
lea edx, [esp + 0x8c]
push edx
push str.NUMBER
push str.CODE
lea ecx, [esp + 0xd8]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.0040afb0
lea ecx, [esp + 0xc8]
jmp 0x4054e4
mov esi, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
push esi
mov dword [esp + 0x85], eax
lea ecx, [esp + 0x6c]
mov word [esp + 0x89], ax
push str._06d
push ecx
mov byte [esp + 0x74], bl
mov byte [esp + 0x93], al
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, 2
jle 0x4054f4
lea ecx, [esp + 0xa8]
call fcn.0040afd0
push 9
mov edi, 0xf
push str.uinfo.tco
lea ecx, [esp + 0x44]
mov dword [esp + 0x314], 3
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00402370
lea eax, [esp + 0xe8]
mov byte [esp + 0x30c], 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405443
sub eax, edx
push eax
lea edx, [esp + 0xec]
push edx
lea ecx, [esp + 0x18]
call fcn.00402370
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xb0]
mov byte [esp + 0x314], 5
call fcn.0040b040
mov eax, dword [esp + 0x28]
mov esi, 0x10
cmp eax, esi
jb 0x405496
mov edx, dword [esp + 0x14]
push edx
call fcn.0040c1b1
add esp, 4
cmp dword [esp + 0x54], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov byte [esp + 0x30c], 3
jb 0x4054bd
mov eax, dword [esp + 0x40]
push eax
call fcn.0040c1b1
add esp, 4
push pe_nt_image_headers32
lea ecx, [esp + 0x6c]
push ecx
push str.NUMBER
lea ecx, [esp + 0xb4]
push str.CODE
call fcn.0040afb0
lea ecx, [esp + 0xa8]
mov dword [esp + 0x30c], 0xffffffff
call fcn.0040aff0
mov ecx, dword [esp + 0x304]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2fc]
call fcn.0040c0d7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret