Function at 0x401b10
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x44a871
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x46a74c]
xor eax, esp
mov dword [esp + 0x338], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46a74c]
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.0042eaee
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.0041c39f
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 0x401eb0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x30]
push ecx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
call fcn.0041d031
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401bdb
push 0x80004005
call fcn.00401080
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.00401ab0
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 0x401c37
push edx
lea ecx, [esp + 0x1c]
call fcn.004013f0
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.0041d031
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401c62
push 0x80004005
call fcn.00401080
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.0041d031
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401c94
push 0x80004005
call fcn.00401080
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.00401ab0
push edi
call fcn.0041c39a
mov edi, dword [esp + 0x30]
mov eax, dword [edi - 0xc]
add esp, 0x10
test eax, eax
mov dword [esp + 0x28], ebx
jle 0x401e02
test ebx, ebx
jl 0x401e15
cmp ebx, eax
jg 0x401e15
movsx eax, byte [ebx + edi]
push eax
call fcn.0042f1c7
add esp, 4
test eax, eax
je 0x401d5d
cmp ebx, dword [edi - 0xc]
jg 0x401e15
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 0x401d36
push edi
lea ecx, [esp + 0x20]
call fcn.004013f0
mov esi, dword [esp + 0x1c]
test edi, edi
mov dl, byte [esp + 0x17]
mov byte [esi + ebp], dl
jl 0x401e15
cmp edi, dword [esi - 8]
jg 0x401e15
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 0x401e15
cmp byte [ebx + edi], 0x20
jne 0x401df0
mov ecx, dword [esp + 0x24]
add ecx, 1
cmp ecx, 3
mov dword [esp + 0x24], ecx
jne 0x401df0
sub eax, ebx
sub eax, 1
cmp eax, 4
jge 0x401df0
mov edx, 4
sub edx, eax
xor ebx, ebx
test edx, edx
mov dword [esp + 0x34], edx
jle 0x401de4
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 0x401dc9
push edi
lea ecx, [esp + 0x20]
call fcn.004013f0
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
test edi, edi
mov byte [esi + ebp], 0x30
jl 0x401e15
cmp edi, dword [esi - 8]
jg 0x401e15
add ebx, 1
cmp ebx, edx
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
jl 0x401da0
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 0x401ce0
push esi
call fcn.0042f001
add esp, 4
test ebp, ebp
mov ebx, eax
jne 0x401e1f
xor eax, eax
jmp 0x401e31
push 0x80070057
call fcn.00401080
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401e24
sub eax, edx
js 0x401e15
cmp eax, dword [ebp - 8]
jg 0x401e15
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 0x401e61
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 0x401e85
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 0x401eac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x401ebb
push edi
call fcn.0041c39a
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.0042e802
add esp, 0x348
ret