Function at 0x401b00
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x44a271
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x46997c]
xor eax, esp
mov dword [esp + 0x338], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46997c]
xor eax, esp
push eax
lea eax, [esp + 0x350]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x150]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14c]
push ecx
lea edx, [esp + 0x48]
push 0x105
push edx
call fcn.0042e4ea
add esp, 0xc
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x48]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
push esi
call fcn.0041bdff
add esp, 4
mov edi, eax
push edi
push esi
push ebx
lea edx, [esp + 0x50]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401ea0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x30]
push ecx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
call fcn.0041ca91
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401bcb
push 0x80004005
call fcn.00401070
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [esp + 0x20]
push str.StringFileInfo_04x_04xFileVersion
push eax
mov dword [esp + 0x368], ebx
call fcn.00401aa0
mov ebp, dword [esp + 0x28]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, edx
add esp, 0x10
or eax, ecx
jge 0x401c27
push edx
lea ecx, [esp + 0x1c]
call fcn.004013c0
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x34]
push edx
push ebp
push edi
call sub.VERSION.dll_VerQueryValueA
call fcn.0041ca91
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401c52
push 0x80004005
call fcn.00401070
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x358], 1
call fcn.0041ca91
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401c84
push 0x80004005
call fcn.00401070
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push 0x450694
push edx
mov byte [esp + 0x364], 2
mov dword [esp + 0x30], ebx
call fcn.00401aa0
push edi
call fcn.0041bdfa
mov edi, dword [esp + 0x30]
mov eax, dword [edi - 0xc]
add esp, 0x10
test eax, eax
mov dword [esp + 0x28], ebx
jle 0x401df2
test ebx, ebx
jl 0x401e05
cmp ebx, eax
jg 0x401e05
movsx eax, byte [ebx + edi]
push eax
call fcn.0042ebc3
add esp, 4
test eax, eax
je 0x401d4d
cmp ebx, dword [edi - 0xc]
jg 0x401e05
mov cl, byte [ebx + edi]
mov ebp, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov byte [esp + 0x17], cl
mov ecx, 1
sub ecx, dword [esi - 4]
lea edi, [ebp + 1]
sub eax, edi
or eax, ecx
jge 0x401d26
push edi
lea ecx, [esp + 0x20]
call fcn.004013c0
mov esi, dword [esp + 0x1c]
test edi, edi
mov dl, byte [esp + 0x17]
mov byte [esi + ebp], dl
jl 0x401e05
cmp edi, dword [esi - 8]
jg 0x401e05
mov ebp, dword [esp + 0x18]
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov edi, dword [esp + 0x20]
mov eax, dword [edi - 0xc]
cmp ebx, eax
jg 0x401e05
cmp byte [ebx + edi], 0x20
jne 0x401de0
mov ecx, dword [esp + 0x24]
add ecx, 1
cmp ecx, 3
mov dword [esp + 0x24], ecx
jne 0x401de0
sub eax, ebx
sub eax, 1
cmp eax, 4
jge 0x401de0
mov edx, 4
sub edx, eax
xor ebx, ebx
test edx, edx
mov dword [esp + 0x34], edx
jle 0x401dd4
lea ecx, [ecx]
mov ebp, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
lea edi, [ebp + 1]
sub eax, edi
or eax, ecx
jge 0x401db9
push edi
lea ecx, [esp + 0x20]
call fcn.004013c0
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
test edi, edi
mov byte [esi + ebp], 0x30
jl 0x401e05
cmp edi, dword [esi - 8]
jg 0x401e05
add ebx, 1
cmp ebx, edx
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
jl 0x401d90
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
add ebx, 1
cmp ebx, eax
mov dword [esp + 0x28], ebx
jl 0x401cd0
push esi
call fcn.0042e9fd
add esp, 4
test ebp, ebp
mov ebx, eax
jne 0x401e0f
xor eax, eax
jmp 0x401e21
push 0x80070057
call fcn.00401070
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401e14
sub eax, edx
js 0x401e05
cmp eax, dword [ebp - 8]
jg 0x401e05
mov dword [ebp - 0xc], eax
add esi, 0xfffffff0
mov byte [eax + ebp], 0
mov byte [esp + 0x358], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401e51
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x358], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x358], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x401eab
push edi
call fcn.0041bdfa
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x350]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.0042e1fe
add esp, 0x348
ret