Function at 0x41ee00
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x4841fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44c
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x1c]
push edi
mov ecx, dword [esi + 4]
xor ebp, ebp
push eax
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call dword [0x48965c]
mov edx, dword [esi + 0x20]
add esi, 0x20
lea eax, [esp + 0x20]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x38], esi
call dword [edx + 0x34]
lea ecx, [esp + 0x10]
call fcn.00423440
mov edx, dword [0x4a3db0]
mov ebx, dword [0x489550]
lea ecx, [esp + 0x54]
mov dword [esp + 0x18], ebp
mov eax, dword [edx + 8]
push 0x100
push ecx
push 0x8f
push eax
mov dword [esp + 0x474], ebp
call ebx
cmp eax, ebp
jne 0x41ee99
mov word [esp + 0x54], bp
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x41eec9
lea eax, [esp + 0x54]
test eax, eax
je 0x41eeb8
lea ecx, [esp + 0x54]
push ecx
call dword [0x4891e0]
lea edx, [esp + 0x54]
lea ecx, [esp + 0x14]
push edx
push eax
call fcn.00403900
jmp 0x41ef2c
push 0x1ff
lea ecx, [esp + 0x18]
mov edi, 0x200
call fcn.004036e0
mov esi, eax
cmp esi, ebp
je 0x41ef1d
mov eax, dword [0x4a3db0]
push edi
push esi
push 0x8f
mov eax, dword [eax + 8]
push eax
call ebx
cmp eax, ebp
jne 0x41eefb
mov word [esi], bp
mov ecx, edi
sub ecx, eax
cmp ecx, 1
jg 0x41ef1d
add edi, 0x100
lea ecx, [esp + 0x14]
lea edx, [edi - 1]
push edx
call fcn.004036e0
mov esi, eax
cmp esi, ebp
jne 0x41eee2
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.004037a0
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
push 0xffffffffffffffd8
lea ecx, [esp + 0x48]
push 0xffffffffffffffd8
push ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
call dword [0x489580]
push 1
lea edx, [esp + 0x48]
push 1
lea eax, [esp + 0x18]
push edx
push eax
push 0x8f
mov ecx, esi
call fcn.00426ad0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
push ebp
lea edx, [esp + 0x258]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x258]
push 0x26
push edx
push ebp
rep stosd dword es:[edi], eax
call dword [0x4894c4]
lea eax, [esp + 0x254]
lea ecx, [esp + 0x14]
push eax
push 0x8d
push ecx
mov dword [esp + 0x24], ebp
call fcn.00410530
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
add esp, 0xc
add eax, 0x3c
mov dword [esp + 0x34], eax
lea edx, [esp + 0x34]
push 1
push 1
push ebp
lea eax, [esp + 0x1c]
push edx
add edi, 0x50
push eax
push 0x8d
mov ecx, esi
mov dword [esp + 0x50], edi
call fcn.00426a70
mov ecx, dword [0x4a3db0]
lea edx, [esp + 0x54]
push 0x100
push edx
mov eax, dword [ecx + 8]
push 0x8e
push eax
call ebx
cmp eax, ebp
jne 0x41f02a
mov word [esp + 0x54], bp
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x41f05e
lea edx, [esp + 0x54]
test edx, edx
jne 0x41f042
xor eax, eax
jmp 0x41f04d
lea eax, [esp + 0x54]
push eax
call dword [0x4891e0]
lea ecx, [esp + 0x54]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00403900
jmp 0x41f0da
push 0x1ff
lea ecx, [esp + 0x18]
mov edi, 0x200
call fcn.004036e0
mov esi, eax
cmp esi, ebp
je 0x41f0b3
mov edx, dword [0x4a3db0]
push edi
push esi
push 0x8e
mov eax, dword [edx + 8]
push eax
call ebx
cmp eax, ebp
jne 0x41f091
mov word [esi], bp
mov ecx, edi
sub ecx, eax
cmp ecx, 1
jg 0x41f0b3
add edi, 0x100
lea ecx, [esp + 0x14]
lea edx, [edi - 1]
push edx
call fcn.004036e0
mov esi, eax
cmp esi, ebp
jne 0x41f077
lea ecx, [esp + 0x14]
call fcn.0040ead0
mov eax, dword [esp + 0x14]
push eax
call dword [0x4891e0]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x14]
mov word [edx + eax*2], bp
push 0x1e
lea eax, [esp + 0x38]
push ebp
push eax
call dword [0x489610]
push 1
push 1
lea ecx, [esp + 0x3c]
push ebp
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x8e
mov ecx, esi
call fcn.00426a70
lea ecx, [esp + 0x10]
mov dword [esp + 0x464], 0xffffffff
call fcn.00423460
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x458
ret