Function at 0x4215d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa572
mov eax, dword fs:[0]
push eax
sub esp, 0x6bc
mov eax, dword [0x4d62b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x216]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x5bc], edi
mov word [ebp - 0x218], bx
call int.0048bd10
mov eax, dword [edi + 0x444]
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push ebx
push ebx
push eax
mov dword [edi + 0x990], ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, ebx
jbe 0x421c28
lea edx, [ebp - 0x5b4]
lea ecx, [edi + 0x428]
push edx
mov dword [ebp - 0x5b4], ebx
call fcn.0043a300
lea ecx, [ebp - 0x218]
add eax, 0x48
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x421670
sub ecx, esi
sar ecx, 1
lea edx, [ebp - 0x218]
push edx
mov ebx, ecx
call fcn.0040cfc0
lea eax, [ebp - 0x5b4]
push eax
lea ecx, [edi + 0x428]
mov dword [ebp - 0x5b4], 0
call fcn.0043a300
mov ebx, eax
add ebx, 0x48
lea esi, [edi + 0x498]
call fcn.00439db0
lea eax, [ebp - 0x330]
call fcn.0041b820
push 0x2e
xor ebx, ebx
push 0x4b7a30
lea esi, [ebp - 0x330]
mov dword [ebp - 4], ebx
call fcn.0043d0d0
cmp dword [edi + 0x408], ebx
je 0x4216f2
push 0x85
push 0x4b7a90
call fcn.0043d0d0
cmp dword [ebp - 0x318], 8
mov esi, dword [ebp - 0x32c]
mov dword [ebp - 0x5b4], ebx
jae 0x42170d
lea esi, [ebp - 0x32c]
lea ecx, [ebp - 0x5b4]
push ecx
lea ecx, [edi + 0x428]
call fcn.0043a300
add eax, 0x70
cmp esi, ebx
jne 0x42172a
xor ecx, ecx
jmp 0x421748
mov ecx, esi
lea edx, [ecx + 2]
mov dword [ebp - 0x5b4], edx
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x421735
sub ecx, dword [ebp - 0x5b4]
sar ecx, 1
push esi
mov ebx, ecx
call fcn.0040cfc0
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421760
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x314]
call fcn.0043d0d0
xor ebx, ebx
cmp dword [edi + 0x408], ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x26c], ebx
je 0x4217a8
mov dword [ebp - 0x278], 1
mov dword [ebp - 0x274], ebx
lea ecx, [ebp - 0x5b4]
push ecx
lea esi, [edi + 0x428]
mov ecx, esi
mov dword [ebp - 0x5b4], ebx
call fcn.0043a300
add dword [eax + 0x10], 1
lea edx, [ebp - 0x5b4]
add eax, 0x10
push edx
mov ecx, esi
mov dword [ebp - 0x5b4], ebx
call fcn.0043a300
mov dword [eax + 4], ebx
mov dword [ebp - 0x5b4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x5b4]
push ecx
mov ecx, esi
mov dword [ebp - 0x5b8], eax
call fcn.0043a300
mov ecx, dword [ebp - 0x5b8]
mov dword [eax + 0x1c], ecx
cmp dword [ebp - 0x318], 8
mov eax, dword [ebp - 0x32c]
mov dword [edi + 0x404], 0xa
jae 0x421828
lea eax, [ebp - 0x32c]
push ebx
lea edx, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x640]
mov dword [ebp - 0x640], edx
call fcn.0043bc80
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x640]
mov eax, edx
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], ebx
mov byte [ebp - 0x230], 0
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x421867
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x234]
call fcn.0040d220
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x640]
lea ecx, [ebp - 0x63c]
cmp eax, ecx
je 0x42189c
push eax
call fcn.00489176
add esp, 4
cmp dword [ebp - 0x2fc], 8
mov eax, dword [ebp - 0x310]
jae 0x4218b1
lea eax, [ebp - 0x310]
push ebx
lea edx, [ebp - 0x6c0]
push eax
lea eax, [ebp - 0x6c4]
mov dword [ebp - 0x6c4], edx
call fcn.0043bc80
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x6c4]
mov eax, edx
mov dword [ebp - 0x238], 0xf
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 0x24c], 0
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4218f0
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x250]
call fcn.0040d220
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x6c4]
lea ecx, [ebp - 0x6c0]
cmp eax, ecx
je 0x421925
push eax
call fcn.00489176
add esp, 4
mov edx, dword [ebp - 0x24c]
mov eax, 0x10
cmp dword [ebp - 0x238], eax
jae 0x42193e
lea edx, [ebp - 0x24c]
cmp dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x230]
jae 0x421952
lea eax, [ebp - 0x230]
mov ecx, dword [edi + 0x424]
mov esi, dword [ecx]
push edx
mov edx, dword [esi + 0xc]
push eax
call edx
mov ecx, dword [ebp - 0x24c]
mov ebx, eax
xor esi, esi
cmp ebx, esi
mov dword [ebp - 0x5b4], ebx
lea eax, [esi + 0x10]
jne 0x4219b6
cmp dword [ebp - 0x238], eax
jae 0x421986
lea ecx, [ebp - 0x24c]
cmp dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x230]
jae 0x42199a
lea eax, [ebp - 0x230]
push ecx
push eax
push 0x4b7ba0
push 0x4b7c08
call fcn.00474370
push eax
call fcn.004743e0
add esp, 0x14
jmp 0x4219f3
cmp dword [ebp - 0x238], eax
jae 0x4219c4
lea ecx, [ebp - 0x24c]
cmp dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x230]
jae 0x4219d8
lea eax, [ebp - 0x230]
push ecx
push eax
push ebx
push 0x4b7ba0
push str.XVK
call fcn.00474370
push eax
call fcn.004743e0
add esp, 0x18
mov ecx, dword [edi + 0x424]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push ebx
call edx
test eax, eax
je 0x421b8e
lea eax, [ebp - 0x5b8]
push eax
lea ecx, [edi + 0x428]
mov dword [ebp - 0x5b8], esi
call fcn.0043a300
mov dword [eax + 0xc], ebx
mov edx, dword [edi]
mov eax, dword [edx + 0xb8]
mov ecx, edi
call eax
lea ecx, [ebp - 0x5b0]
push ecx
call fcn.0041c220
mov byte [ebp - 4], 7
mov edx, dword [edi + 0x4ac]
mov eax, dword [0x4dbc14]
mov ecx, dword [edi + 0x4b0]
mov dword [ebp - 0x504], edx
mov edx, dword [edi + 0x4b4]
mov dword [ebp - 0x468], edx
mov dword [ebp - 0x470], eax
mov eax, dword [0x4dbc18]
mov dword [ebp - 0x46c], ecx
mov ecx, dword [edi + 0x4bc]
lea edx, [edi + 0x4dc]
push edx
mov dword [ebp - 0x5b0], 0x64
mov dword [ebp - 0x5a8], 0xc
mov dword [ebp - 0x510], esi
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 0x450], eax
call dword [section..data]
mov edi, dword [edi + 0x490]
cmp edi, esi
mov dword [ebp - 0x5b8], eax
jne 0x421acd
xor eax, eax
jmp 0x421b05
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x421ae2
xor eax, eax
jmp 0x421b05
lea esi, [eax + eax]
mov eax, esi
call fcn.00491f30
mov edx, dword [ebp - 0x5b8]
mov ebx, esp
mov ecx, esi
mov eax, edi
mov esi, ebx
call fcn.004103c0
mov ebx, dword [ebp - 0x5b4]
mov ecx, eax
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x421b10
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x4fc]
call fcn.0040d220
lea eax, [ebp - 0x5b0]
push eax
call fcn.0047ae96
mov edi, eax
call fcn.00441680
lea esi, [ebp - 0x5b0]
mov byte [ebp - 4], 6
call fcn.0041d890
mov ecx, dword [ebp - 0x5bc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push 0xa
push 2
call eax
cmp dword [ebp - 0x2fc], 8
mov eax, dword [ebp - 0x310]
jae 0x421b70
lea eax, [ebp - 0x310]
push eax
push ebx
push 0x4b7ba0
push str.vk2B
call fcn.00474370
push eax
call fcn.004743e0
add esp, 0x14
xor esi, esi
jmp 0x421bbd
lea ecx, [ebp - 0x5bc]
push ecx
lea ecx, [edi + 0x428]
mov dword [ebp - 0x5bc], esi
call fcn.0043a300
mov eax, dword [eax + 0x28]
mov edx, dword [edi]
push eax
mov dword [edi + 0x404], eax
mov eax, dword [edx + 0x84]
push esi
mov ecx, edi
call eax
mov ebx, 0x10
cmp dword [ebp - 0x238], ebx
jb 0x421bd9
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00487c06
add esp, 4
cmp dword [ebp - 0x21c], ebx
mov edi, 0xf
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x23c], esi
mov byte [ebp - 0x24c], 0
jb 0x421c08
mov edx, dword [ebp - 0x230]
push edx
call fcn.00487c06
add esp, 4
mov dword [ebp - 0x220], esi
lea esi, [ebp - 0x330]
mov dword [ebp - 0x21c], edi
mov byte [ebp - 0x230], 0
call fcn.00421c70
jmp 0x421c4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [edi + 0x444]
push eax
push 0x4b7ba0
push 0x4b7d20
call fcn.00474370
push eax
call fcn.004743e0
add esp, 0x14
lea esp, [ebp - 0x6d8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00488fa3
mov esp, ebp
pop ebp
ret