Function at 0x45ad30
Capabilities:
Contain obfuscated stackstrings
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 0x53e42a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x678
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x664], edi
mov eax, dword [ebx + 0xc]
xor ecx, ecx
mov esi, dword [ebx + 8]
mov dword [ebp - 0x684], edi
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 7
mov dword [ebp - 0x680], eax
mov word [edi + 0x84], cx
mov dword [ebp - 4], ecx
lea eax, [edi + 0x24]
push 0x60
push ecx
push eax
mov byte [edi + 0x9c], 1
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
call fcn.0050d5d0
add esp, 0xc
lea ecx, [ebp - 0x67c]
push esi
call fcn.0041c4f0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x66c], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jne 0x45af3c
mov eax, dword [0x5958a8]
mov dword [ebp - 0x664], 0
mov dword [ebp - 0x664], 0x5958a8
test eax, eax
je 0x45ae22
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
mov ecx, dword [0x592c54]
test ecx, ecx
je 0x45ae48
cmp dword [0x592c58], 8
mov eax, 0x592c44
cmovae eax, dword [0x592c44]
jmp 0x45af15
push 0x20c
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.0050d5d0
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x45af22
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x3e], ax
lea eax, [ebp - 0x660]
push eax
call fcn.0050d5d0
add esp, 0xc
lea eax, [ebp - 0x660]
push 0x208
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x45aef3
test eax, eax
je 0x45aef3
add eax, eax
cmp eax, 0x412
jae 0x45b296
xor ecx, ecx
mov word [ebp + eax - 0x660], cx
lea ecx, [ebp - 0x660]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45aee0
lea eax, [ebp - 0x660]
jmp 0x45af11
lea ecx, [ebp - 0x248]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45af00
lea eax, [ebp - 0x248]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x67c]
call fcn.00418830
mov byte [ebp - 4], 1
mov eax, dword [0x5958a8]
test eax, eax
je 0x45af32
push eax
call esi
mov dword [ebp - 0x664], 0
cmp byte [ebx + 0x10], 0
je 0x45b0bc
lea eax, [ebp - 0x67c]
push eax
call fcn.0041f020
add esp, 4
test al, al
jne 0x45b0bc
lea eax, [ebp - 0x67c]
push eax
call fcn.0041f9a0
add esp, 4
lea eax, [ebp - 0x67c]
push eax
call fcn.0041f020
add esp, 4
test al, al
jne 0x45b0bc
mov eax, dword [0x5958a8]
mov dword [ebp - 0x664], 0
mov dword [ebp - 0x664], 0x5958a8
test eax, eax
je 0x45afa7
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 3
mov ecx, dword [0x592c54]
test ecx, ecx
je 0x45afcd
cmp dword [0x592c58], 8
mov eax, 0x592c44
cmovae eax, dword [0x592c44]
jmp 0x45b095
push 0x20c
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.0050d5d0
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x45b0a2
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x3e], ax
lea eax, [ebp - 0x660]
push eax
call fcn.0050d5d0
add esp, 0xc
lea eax, [ebp - 0x660]
push 0x208
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x45b073
test eax, eax
je 0x45b073
add eax, eax
cmp eax, 0x412
jae 0x45b296
xor ecx, ecx
mov word [ebp + eax - 0x660], cx
lea ecx, [ebp - 0x660]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b060
lea eax, [ebp - 0x660]
jmp 0x45b091
lea ecx, [ebp - 0x248]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b080
lea eax, [ebp - 0x248]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x67c]
call fcn.00418830
mov byte [ebp - 4], 1
mov eax, dword [0x5958a8]
test eax, eax
je 0x45b0b2
push eax
call esi
mov dword [ebp - 0x664], 0
cmp dword [ebp - 0x66c], 0
je 0x45b209
mov eax, dword [ebp - 0x680]
cmp dword [eax + 0x10], 0
je 0x45b209
push eax
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041e580
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x67c]
cmp eax, esi
je 0x45b12e
mov ecx, eax
call fcn.004185c0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x67c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x66c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x45b16c
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b162
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b29b
push edx
push ecx
call fcn.0050b392
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
mov dword [ebp - 0x34], 0x43002e
mov dword [ebp - 0x30], 0x650068
mov dword [ebp - 0x2c], 0x6b0063
mov dword [ebp - 0x28], 0x740053
mov dword [ebp - 0x24], 0x740061
mov dword [ebp - 0x20], 0x64002e
mov dword [ebp - 0x1c], 0x740061
mov dword [ebp - 0x18], 0x61
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b1c0
sub ecx, edx
lea eax, [ebp - 0x34]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x67c]
call fcn.0041c6a0
lea eax, [ebp - 0x67c]
lea ecx, [edi + 0x84]
cmp ecx, eax
je 0x45b209
cmp dword [ebp - 0x668], 8
push dword [ebp - 0x66c]
cmovae eax, dword [ebp - 0x67c]
push eax
call fcn.00418830
mov ecx, edi
call fcn.0045b3f0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x668]
cmp edx, 8
jb 0x45b250
mov ecx, dword [ebp - 0x67c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b246
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b2a0
push edx
push ecx
call fcn.0050b392
add esp, 8
xor eax, eax
mov dword [ebp - 0x66c], 0
mov dword [ebp - 0x668], 7
mov word [ebp - 0x67c], ax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
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.0050b0b7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.0050b84e
call fcn.0050f799
call fcn.0050f799
int3