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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42eaa9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x43b050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], edi
lea eax, [ebp - 0x18]
mov edi, 1
push eax
mov dword [ebp - 0x10], edi
call fcn.004025e0
mov dword [ebp - 4], edi
mov ecx, dword [eax]
mov edi, dword [esi]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x4028cd
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4028c3
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4028c3
call fcn.00403c60
mov dword [ebp - 0x14], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4028b9
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
mov dword [esi], ecx
jmp 0x4028cd
mov ebx, dword [ecx - 0xc]
push ecx
push esi
call fcn.00403ba0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4028f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x402931
lea ecx, [ebp - 0x18]
call fcn.004022c0
mov edi, esi
mov dword [ebp - 4], 2
call fcn.004033b0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402931
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x402a0f
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x40295c
mov eax, edi
mov ecx, esi
call fcn.00403ef0
mov eax, dword [esi]
cmp dword [eax - 8], edi
jge 0x40296d
push 0x80070057
call fcn.00401560
xor edx, edx
push eax
push edx
push edx
mov dword [eax - 0xc], edi
mov ecx, dword [esi]
push 0x26
push edx
mov word [ecx + 0x208], dx
call dword [0x4301fc]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40299e
push ecx
push eax
call fcn.0041b407
add esp, 8
test eax, eax
js 0x402963
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x402963
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov ecx, dword [0x43e594]
lea edi, [ebp - 0x18]
call fcn.00411b20
mov dword [ebp - 4], 3
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ebx, esi
call fcn.00403e30
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4029f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00402030
mov ecx, dword [esi]
test ecx, ecx
je 0x402a0a
call fcn.00402130
test eax, eax
jne 0x402a0f
call fcn.00403910
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x402a82
mov eax, 0x43e5c4
mov edi, esi
call fcn.004033b0
mov ecx, dword [0x43e590]
lea edi, [ebp - 0x18]
call fcn.00411b20
mov dword [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ebx, esi
call fcn.00403e30
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402a69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00402030
mov ecx, dword [esi]
test ecx, ecx
je 0x402a7d
call fcn.00402130
test eax, eax
jne 0x402a82
call fcn.00403910
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
je 0x402a96
mov eax, esi
mov edi, 0x43e5c0
call fcn.004033b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4