Function at 0x401a80
Capabilities:
Get file version info
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push edi
mov edi, dword [ebp + 0xc]
mov ecx, 0x39
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 0x8000
push eax
call fcn.00410b6d
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
jne 0x401ab8
or eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
xor ebx, ebx
push 0x4004
mov dword [ebp - 0x10], ebx
call fcn.0040e3e0
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
push 0x4000
push esi
push edi
call fcn.00410977
add esp, 0xc
mov edi, eax
test ebx, ebx
mov dword [ebp - 4], edi
jne 0x401b23
test edi, edi
je 0x401b23
cmp byte [esi], 0x4d
je 0x401aff
cmp byte [esi + 1], 0x5a
jne 0x401cd4
push esi
call fcn.00401e00
add esp, 4
test eax, eax
je 0x401b23
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0xc]
push 0
push eax
push ecx
mov dword [ebp - 8], eax
call fcn.004108dd
add esp, 0xc
jmp 0x401b51
add ebx, edi
lea eax, [edi - 1]
mov dword [ebp - 8], ebx
xor ecx, ecx
xor ebx, ebx
cmp eax, ecx
jl 0x401b51
cmp byte [ebx + esi], 0x21
jne 0x401b64
mov edx, dword [ebp - 0x14]
inc edx
cmp edx, 4
mov dword [ebp - 0x14], edx
jne 0x401b4c
cmp byte [ebx + esi + 1], 0x3a
je 0x401b69
inc ebx
cmp ebx, eax
jle 0x401b33
test edi, edi
je 0x401cd4
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
jmp 0x401ad4
mov dword [ebp - 0x14], ecx
jmp 0x401b4c
mov ecx, dword [ebp - 4]
xor edi, edi
add ebx, 2
lea eax, [ecx - 1]
mov dl, byte [ebx + esi]
inc ebx
mov byte [ebp + edi - 0x144], dl
inc edi
cmp ebx, eax
jg 0x401b92
cmp byte [ebx + esi], 0
je 0x401b92
cmp edi, 0xfe
jb 0x401b74
cmp ebx, ecx
jl 0x401bd1
mov eax, dword [ebp - 0xc]
push 0x4000
push esi
push eax
call fcn.00410977
mov ecx, dword [ebp - 8]
add esp, 0xc
add ecx, eax
xor ebx, ebx
mov dword [ebp - 8], ecx
dec eax
mov cl, byte [ebx + esi]
inc ebx
mov byte [ebp + edi - 0x144], cl
inc edi
cmp ebx, eax
jg 0x401bd1
cmp byte [ebx + esi], 0
je 0x401bd1
cmp edi, 0xfe
jb 0x401bb3
lea edx, [ebp - 0x144]
push 0x20
push edx
mov byte [ebp + edi - 0x144], 0
call fcn.0040fe50
mov edx, eax
add esp, 8
test edx, edx
je 0x401cd4
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x144]
or ecx, 0xffffffff
mov byte [edx], 0
lea esi, [eax + 0xa0]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 4], esi
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 4]
push 0x20
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 1]
push edi
call fcn.0040fe50
mov edx, eax
add esp, 8
test edx, edx
je 0x401cd1
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov byte [edx], 0
push 0x20
lea esi, [ecx + 0x60]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 4], esi
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 1]
push edi
call fcn.0040fe50
add esp, 8
test eax, eax
je 0x401c7e
mov byte [eax], 0
mov ecx, dword [ebp + 0xc]
xor eax, eax
lea edx, [ecx + 0x40]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
mov al, byte [ecx]
test al, al
je 0x401cbc
cmp al, 0x66
je 0x401cb1
cmp al, 0x46
jne 0x401cb4
mov byte [ecx], 0x2e
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x401ca9
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
add ebx, ecx
mov dword [ebp - 0x10], 1
mov dword [edx + 0xe0], ebx
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041082a
push esi
call fcn.0040f9ad
mov edx, dword [ebp + 8]
add esp, 8
lea ecx, [ebp - 0x1c]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x401d99
push esi
call fcn.0040e3e0
mov ecx, dword [ebp + 8]
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x1c]
push ebx
push esi
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401d90
lea edx, [ebp - 4]
lea eax, [ebp + 8]
push edx
push eax
push 0x41c0d0
push ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [eax + 0xc]
mov cx, word [eax + 0xc]
shr edx, 0x10
push ecx
push edx
mov edx, dword [eax + 8]
xor ecx, ecx
mov cx, word [eax + 8]
lea eax, [ebp - 0x44]
shr edx, 0x10
push ecx
push edx
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp + 0xc]
lea edi, [ebp - 0x44]
xor eax, eax
add esp, 0x18
lea edx, [ecx + 0xc0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x10]
and ecx, 3
or al, 2
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x10], eax
push ebx
call fcn.0040f9ad
add esp, 4
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret