Function at 0x4163c0
Capabilities:
Check if file exists
Get file version info

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 0x693afa
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x75d580]
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, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa0], 0
mov edx, esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0040af80
cmp dword [ebp - 0x34], 0
mov edx, 0x5c
mov dword [ebp - 0xa0], 2
jbe 0x416461
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x41644d
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
cmp dx, word [ecx + eax*2 - 2]
je 0x416461
push 0x5c
lea ecx, [ebp - 0x44]
call fcn.00410980
push 0xc
push str.verinfo.json
lea ecx, [ebp - 0x44]
call fcn.004021f0
mov dword [ebp - 0x64], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x60], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x74], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x64], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 0xa0], 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x4164f1
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4164e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416e22
push ecx
push edx
call fcn.0048a4f6
add esp, 8
cmp dword [ebp - 0x60], 7
lea eax, [ebp - 0x74]
cmova eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4167f2
and dword [ebp - 0x90], 0xfffffe00
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
push 1
lea edx, [ebp - 0x98]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.00418370
add esp, 4
test al, al
jne 0x4165cb
movsx eax, byte [ebp - 0x90]
sub eax, 4
je 0x416597
sub eax, 2
je 0x416564
sub eax, 1
jne 0x4165b1
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x7c], ecx
test ecx, ecx
je 0x4165b1
mov eax, dword [ecx]
push dword [eax + 4]
push ecx
call fcn.0042b760
mov eax, dword [ebp - 0x7c]
push 0x30
push dword [eax]
call fcn.0048a4f6
push 8
push dword [ebp - 0x7c]
call fcn.0048a4f6
add esp, 0x10
jmp 0x4165b1
test dword [ebp - 0x90], 0x100
je 0x4165b1
push dword [ebp - 0x98]
call fcn.005432f0
add esp, 4
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x78], eax
test eax, eax
je 0x4167f2
mov byte [ebp - 4], 5
jmp 0x4167c9
mov al, byte [ebp - 0x90]
cmp al, 7
jne 0x416759
push 0x736730
push str.file_ver
lea ecx, [ebp - 0x98]
call fcn.00423d20
test eax, eax
je 0x416753
push 0x736730
push str.file_ver
lea ecx, [ebp - 0x98]
call fcn.00423b20
cmp byte [eax + 8], 0
je 0x416753
push 0x736730
push str.file_ver
lea ecx, [ebp - 0x98]
call fcn.00423b20
mov ecx, eax
call fcn.004237a0
test al, al
jne 0x416753
push 0x736730
push str.file_ver
lea ecx, [ebp - 0x98]
call fcn.00423b20
cmp byte [eax + 8], 4
jne 0x416753
push 0x736730
push str.file_ver
lea ecx, [ebp - 0x98]
call fcn.00423b20
push edi
mov ecx, eax
call fcn.00422f70
mov byte [ebp - 4], 2
movsx eax, byte [ebp - 0x90]
sub eax, 4
je 0x4166bc
sub eax, 2
je 0x41668f
sub eax, 1
jne 0x4166d6
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x4166d6
mov eax, dword [esi]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.0042b760
push 0x30
push dword [esi]
call fcn.0048a4f6
push 8
push esi
call fcn.0048a4f6
add esp, 0x10
jmp 0x4166d6
test dword [ebp - 0x90], 0x100
je 0x4166d6
push dword [ebp - 0x98]
call fcn.005432f0
add esp, 4
mov esi, dword [ebp - 0x8c]
test esi, esi
je 0x41670b
push 0x422900
mov byte [ebp - 4], 7
push dword [esi - 4]
push 4
push esi
call fcn.0048ac16
mov eax, dword [esi - 4]
lea ecx, [esi - 4]
lea eax, [eax*4 + 4]
push eax
push ecx
call fcn.0048aef4
add esp, 8
xorps xmm0, xmm0
movlpd qword [ebp - 0x98], xmm0
mov ecx, dword [ebp - 0x60]
cmp ecx, 7
jbe 0x416e00
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416df6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416e27
jmp 0x416df6
mov al, byte [ebp - 0x90]
movsx eax, al
sub eax, 4
je 0x41679e
sub eax, 2
je 0x41676b
sub eax, 1
jne 0x4167b8
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x7c], ecx
test ecx, ecx
je 0x4167b8
mov eax, dword [ecx]
push dword [eax + 4]
push ecx
call fcn.0042b760
mov eax, dword [ebp - 0x7c]
push 0x30
push dword [eax]
call fcn.0048a4f6
push 8
push dword [ebp - 0x7c]
call fcn.0048a4f6
add esp, 0x10
jmp 0x4167b8
test dword [ebp - 0x90], 0x100
je 0x4167b8
push dword [ebp - 0x98]
call fcn.005432f0
add esp, 4
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x78], eax
test eax, eax
je 0x4167f2
mov byte [ebp - 4], 6
push 0x422900
push dword [eax - 4]
push 4
push eax
call fcn.0048ac16
mov ecx, dword [ebp - 0x78]
add ecx, 0xfffffffc
mov eax, dword [ecx]
lea eax, [eax*4 + 4]
push eax
push ecx
call fcn.0048aef4
add esp, 8
mov edx, esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5c]
call fcn.0040af80
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0xa0], 0x14
mov dword [ebp - 0x9c], ecx
test ecx, ecx
je 0x416956
cmp dword [esi + 0x14], 7
mov edx, esi
jbe 0x416825
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov esi, 0x5c
cmp si, word [edx + eax*2 - 2]
je 0x416956
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x78], edx
cmp ecx, edx
jae 0x41685a
lea eax, [ecx + 1]
cmp edx, 7
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
cmova eax, dword [ebp - 0x5c]
mov dword [eax + ecx*2], esi
jmp 0x416956
mov esi, bind
mov eax, esi
sub eax, ecx
cmp eax, 1
jb 0x416e2c
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0xa8], eax
or ecx, 7
cmp ecx, esi
jbe 0x416882
mov ecx, esi
jmp 0x41689a
mov eax, edx
shr eax, 1
sub esi, eax
cmp edx, esi
jbe 0x416893
mov ecx, bind
jmp 0x41689a
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], ecx
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00402370
mov esi, eax
add esp, 8
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x9c]
add eax, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x78], 7
mov dword [ebp - 0xa4], eax
push eax
jbe 0x416939
mov esi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x7c]
push esi
push eax
call fcn.0053f540
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov ecx, dword [ebp - 0xa4]
mov dword [ecx + eax], 0x5c
mov eax, dword [ebp - 0x78]
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x416927
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x416e31
mov esi, edx
push ecx
push esi
call fcn.0048a4f6
mov eax, dword [ebp - 0x7c]
add esp, 8
mov dword [ebp - 0x5c], eax
jmp 0x416956
lea eax, [ebp - 0x5c]
push eax
push esi
call fcn.0053f540
mov ecx, dword [ebp - 0xa4]
add esp, 0xc
mov dword [ecx + esi], 0x5c
mov dword [ebp - 0x5c], esi
push 6
push str.AK.exe
lea ecx, [ebp - 0x5c]
call fcn.004021f0
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 0xa0], 0xc
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x48]
cmp ecx, 7
jbe 0x4169e6
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4169dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416e31
push ecx
push edx
call fcn.0048a4f6
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x18], 7
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x48], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xorps xmm0, xmm0
test eax, eax
jne 0x416a7b
mov ecx, dword [ebp - 0x18]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
cmp ecx, 7
jbe 0x416a62
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416a58
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416e27
push ecx
push edx
call fcn.0048a4f6
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
jmp 0x416716
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
cmova eax, dword [ebp - 0x2c]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x9c], eax
movups xmmword [ebp - 0x98], xmm0
cmp esi, 0x7ffffffe
ja 0x416e36
cmp esi, 7
ja 0x416ad7
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x84], 7
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x98], xmm0
jmp 0x416b35
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x416aea
mov eax, bind
jmp 0x416af4
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00402370
mov ecx, eax
mov dword [ebp - 0x88], esi
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x84], eax
lea eax, [esi*2 + 2]
push eax
push dword [ebp - 0x9c]
mov dword [ebp - 0x98], ecx
push ecx
call fcn.0053f540
add esp, 0x14
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x44]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
push 0x735258
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
call fcn.00402060
cmp dword [ebp - 0x84], 7
lea eax, [ebp - 0x98]
push 0
cmova eax, dword [ebp - 0x98]
push eax
mov dword [ebp - 0xa0], 0x2c
mov dword [ebp - 0xa8], 0x34
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x416c48
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0048a772
add esp, 4
mov esi, eax
cmp dword [ebp - 0x84], 7
lea eax, [ebp - 0x98]
cmova eax, dword [ebp - 0x98]
push esi
push dword [ebp - 0x9c]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x416c3d
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x735d18
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x416c3d
mov ecx, dword [ebp - 0x78]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, esi
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416c24
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.00408050
push 2
push esi
call fcn.0048a4f6
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x84]
cmp ecx, 7
jbe 0x416c8c
mov edx, dword [ebp - 0x98]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416c82
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416e27
push ecx
push edx
call fcn.0048a4f6
add esp, 8
xor eax, eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
mov byte [ebp - 4], 0xd
xorps xmm0, xmm0
cmp dword [ebp - 0x30], 7
push 0
push 0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
push 0
mov dword [edi + 0x10], eax
push 0
mov dword [edi + 0x14], 0xf
mov byte [edi], al
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push 0xffffffffffffffff
push eax
push 0
push 0
mov dword [ebp - 0xa0], 0x6c
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.0048a772
add esp, 4
mov dword [ebp - 0x9c], eax
push esi
mov esi, eax
push 0
push esi
call fcn.0053fb70
add esp, 0xc
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 7
cmova eax, dword [ebp - 0x44]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416d34
mov edi, dword [ebp - 0xac]
sub ecx, edx
push ecx
push esi
mov ecx, edi
call fcn.00410d90
push esi
call fcn.0048a77b
mov ecx, dword [ebp - 0x30]
add esp, 4
cmp ecx, 7
jbe 0x416d8f
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416d85
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416e27
push ecx
push edx
call fcn.0048a4f6
add esp, 8
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp ecx, 7
jbe 0x416a62
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416dd3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416e27
push ecx
push edx
call fcn.0048a4f6
add esp, 8
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
jmp 0x416716
push ecx
push edx
call fcn.0048a4f6
add esp, 8
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.0048a267
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.00543627
call fcn.00543627
call fcn.00401460
call fcn.00543627
call fcn.00401460
int3