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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56dbc1
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5d2fec]
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
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 2
push 0x5af8f0
mov dword [edi], 0
call fcn.00406840
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.Wow64DisableWow64FsRedirection
push str.kernel32
mov dword [ebp - 0x38], 1
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
test eax, eax
je 0x403ef0
lea ecx, [ebp - 0x24]
push ecx
call eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403f16
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call ebx
push eax
call esi
test eax, eax
je 0x403f16
lea ecx, [ebp - 0x24]
push ecx
call eax
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
or ebx, 0xffffffff
test esi, esi
jne 0x403f4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x404203
push 5
push 0x5af648
mov ecx, edi
call fcn.00406bd0
jmp 0x404203
lea eax, [esi + 1]
push eax
call fcn.004179bf
add esp, 4
mov dword [ebp - 0x30], eax
push eax
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4041f8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00417ce3
mov ecx, eax
test ecx, ecx
jne 0x403f9a
push 0x80004005
call fcn.00407010
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x24]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x30]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ebx, dword [ebp - 0x1c]
xor esi, esi
shr ebx, 2
test ebx, ebx
je 0x404011
nop dword [eax + eax]
mov eax, dword [ebp - 0x24]
push dword [ebp + 0xc]
lea ecx, [eax + esi*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x18]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00406ff0
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
add esp, 0x14
push eax
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp - 0x30]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x404046
inc esi
cmp esi, ebx
jb 0x403fd0
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov ecx, 0x5af8f0
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40407f
test dx, dx
je 0x404042
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40407f
add eax, 4
add ecx, 4
test dx, dx
jne 0x404020
xor eax, eax
jmp 0x404084
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x40405d
mov esi, dword [ebp - 0x2c]
xor ecx, ecx
push ecx
push edx
mov ecx, esi
call fcn.00406bd0
jmp 0x404014
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404062
sub ecx, esi
mov esi, dword [ebp - 0x2c]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00406bd0
jmp 0x404014
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x4041d7
call fcn.00417ce3
mov ecx, eax
test ecx, ecx
jne 0x4040a6
push 0x80004005
call fcn.00407010
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, str.StringFileInfo_s_s
mov byte [ebp - 4], 4
test eax, 0xffff0000
jne 0x4040da
movzx edi, ax
push edi
call fcn.00419421
test eax, eax
je 0x4040ec
push edi
push eax
lea ecx, [ebp - 0x14]
call fcn.004066a0
jmp 0x4040e9
push 0x15
push str.StringFileInfo_s_s
lea ecx, [ebp - 0x14]
call fcn.00406bd0
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 5
xor ebx, ebx
mov dword [ebp - 0x48], 0x5af6ec
mov dword [ebp - 0x44], str.040904b0
mov dword [ebp - 0x40], str.080404e4
mov dword [ebp - 0x3c], str.040904e4
mov dword [ebp - 0x34], ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push dword [ebp + ebx*4 - 0x48]
push esi
push eax
call fcn.00406ff0
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
add esp, 0x10
push eax
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp - 0x30]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40416c
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x404149
xor ecx, ecx
jmp 0x404162
mov ecx, edx
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404150
sub ecx, ebx
mov ebx, dword [ebp - 0x34]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x2c]
push edx
call fcn.00406bd0
mov eax, dword [ebp - 0x2c]
mov ecx, 0x5af8f0
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40419c
test dx, dx
je 0x404198
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40419c
add eax, 4
add ecx, 4
test dx, dx
jne 0x404176
xor eax, eax
jmp 0x4041a1
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
jne 0x4041b7
inc ebx
mov dword [ebp - 0x34], ebx
cmp ebx, 4
jb 0x404111
or ebx, 0xffffffff
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4041da
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4041da
or ebx, 0xffffffff
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4041f5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.004179c8
add esp, 4
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404224
lea ecx, [ebp - 0x24]
push ecx
call eax
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404242
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40425e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.0054e73a
mov esp, ebp
pop ebp
ret