Function at 0x40b320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c0088
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov edx, dword [0x4eab28]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4eab28
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x206
lea edx, [esp + 0x3a]
xor ecx, ecx
push ebx
mov dword [esp + 0x258], ebx
push edx
mov word [esp + 0x40], cx
call fcn.00482260
add esp, 0xc
push 1
push 0x23
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00403ac0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push ebx
push eax
mov byte [esp + 0x25c], 1
call fcn.0040abe0
mov byte [esp + 0x25c], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b405
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
movzx edx, word [edi]
call fcn.004080c0
cmp edx, ebx
ja 0x40b41c
cmp eax, 0x7800000
jb 0x40b444
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.00404130
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004085a0
add esp, 4
cmp eax, ebx
jne 0x40b563
call fcn.00408000
movzx eax, ax
cmp ax, bx
jne 0x40b492
push 0x30
push 0x4d1d20
push 0x4d235c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [edi - 0x10]
mov dword [esp + 0x250], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b48b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40b597
mov ecx, 0x3a
mov dword [esp + 0x2e], ebx
lea edx, [esp + 0x2c]
mov word [esp + 0x2e], cx
push edx
lea ecx, [esp + 0x1c]
mov word [esp + 0x30], ax
call fcn.00403ac0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ebx
mov byte [esp + 0x258], 2
push ecx
mov dword [esp + 0x2c], 1
call fcn.0040abe0
mov edi, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x40b506
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00404130
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004085a0
add esp, 4
mov byte [esp + 0x17], bl
cmp eax, ebx
jne 0x40b50b
mov byte [esp + 0x17], 1
mov dword [esp + 0x250], ebx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b532
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], bl
je 0x40b563
add edi, 0xfffffff0
mov dword [esp + 0x250], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b55f
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
xor eax, eax
jmp 0x40b597
mov esi, dword [esp + 0x24]
call fcn.0040b5c0
mov esi, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x250], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b595
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.004820d9
mov esp, ebp
pop ebp
ret 4