Function at 0x407c40
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e5cd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x488
mov eax, dword [0x42c00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x490], esi
mov dword [ebp - 0x48c], esi
mov dword [ebp - 0x494], esi
xorps xmm0, xmm0
mov dword [ebp - 0x488], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x488], 1
call fcn.0040a1b0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xorps xmm0, xmm0
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x23c], 0
movups xmmword [ebp - 0x250], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407d21
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x250]
call fcn.00401a90
mov dword [ebp - 0x488], 3
push str.BIGBIG_WONupdate
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], 1
call fcn.00405ab0
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x250]
cmovae ecx, dword [ebp - 0x250]
call fcn.004016b0
test al, al
je 0x407fb0
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
xor eax, eax
mov dword [ebp - 0x224], 7
movups xmmword [ebp - 0x238], xmm0
mov word [ebp - 0x238], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
cmp dword [ebp - 0x23c], 8
mov edi, dword [ebp - 0x240]
cmovae ecx, dword [ebp - 0x250]
cmp edi, 7
ja 0x407df5
lea eax, [edi + edi]
mov dword [ebp - 0x228], edi
push eax
push ecx
lea eax, [ebp - 0x238]
push eax
call fcn.0040a350
add esp, 0xc
xor eax, eax
mov word [ebp + edi*2 - 0x238], ax
jmp 0x407e0f
push ecx
mov byte [ebp - 0x484], 0
lea ecx, [ebp - 0x238]
push dword [ebp - 0x484]
push edi
call fcn.00401b90
mov edx, dword [ebp - 0x224]
mov eax, edx
mov ecx, dword [ebp - 0x228]
sub eax, ecx
cmp eax, 2
jb 0x407e53
lea eax, [ecx + 2]
cmp edx, 8
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
xor edx, edx
mov dword [eax + ecx*2], 0x2a005c
mov word [eax + ecx*2 + 4], dx
lea eax, [ebp - 0x238]
jmp 0x407e74
push 2
push 0x429674
mov byte [ebp - 0x484], 0
lea ecx, [ebp - 0x238]
push dword [ebp - 0x484]
push 2
call fcn.00401cc0
cmp dword [eax + 0x14], 8
jb 0x407e7c
mov eax, dword [eax]
lea ecx, [ebp - 0x480]
push ecx
push eax
call fcn.0041142d
mov edi, eax
add esp, 8
mov dword [ebp - 0x484], edi
cmp edi, 0xffffffff
je 0x407f74
nop dword [eax]
test byte [ebp - 0x480], 0x10
jne 0x407f53
lea eax, [ebp - 0x45c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407eb6
mov ecx, dword [ebp - 0x224]
sub eax, edx
sar eax, 1
cmp eax, ecx
ja 0x407f13
lea esi, [eax + eax]
mov dword [ebp - 0x228], eax
cmp ecx, 8
lea eax, [ebp - 0x45c]
push esi
lea edi, [ebp - 0x238]
cmovae edi, dword [ebp - 0x238]
push eax
push edi
call fcn.0040a350
add esp, 0xc
lea ecx, [ebp - 0x238]
xor eax, eax
mov word [esi + edi], ax
mov esi, dword [ebp - 0x490]
mov edi, dword [ebp - 0x484]
jmp 0x407f35
lea ecx, [ebp - 0x45c]
mov byte [ebp - 0x48c], 0
push ecx
push dword [ebp - 0x48c]
lea ecx, [ebp - 0x238]
push eax
call fcn.00401b90
mov ecx, eax
mov eax, dword [esi + 4]
push ecx
cmp eax, dword [esi + 8]
je 0x407f4b
mov ecx, eax
call fcn.00405960
add dword [esi + 4], 0x18
jmp 0x407f53
push eax
mov ecx, esi
call fcn.00406040
lea eax, [ebp - 0x480]
push eax
push edi
call fcn.00411438
add esp, 8
test eax, eax
je 0x407ea0
push edi
call fcn.00411407
add esp, 4
mov ecx, dword [ebp - 0x224]
cmp ecx, 8
jb 0x407fb0
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407fa6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40800c
push ecx
push edx
call fcn.0040895b
add esp, 8
mov ecx, dword [ebp - 0x23c]
cmp ecx, 8
jb 0x407fec
mov edx, dword [ebp - 0x250]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407fe2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408011
push ecx
push edx
call fcn.0040895b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040891d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040e6af
call fcn.0040e6af
int3