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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4271b0
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x436024]
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
xor esi, esi
mov edi, edx
cmp edi, esi
mov ebx, ecx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x54], esi
je 0x4131a5
cmp word [edi], si
je 0x4131a5
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x412fda
mov esi, dword [ebp - 0x60]
push esi
mov ecx, 0x42e550
call fcn.00405e20
mov eax, esi
jmp 0x4131b2
mov eax, dword [0x4362a0]
mov edx, dword [eax + 0xc]
mov ecx, 0x4362a0
call edx
add eax, 0x10
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], esi
mov eax, dword [0x4362a0]
mov edx, dword [eax + 0xc]
mov ecx, 0x4362a0
call edx
add eax, 0x10
mov dword [ebp - 0x64], eax
push esi
push edi
mov byte [ebp - 4], 1
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x413086
push esi
call fcn.0042574c
add esp, 4
push eax
push esi
xor esi, esi
push esi
push edi
mov dword [ebp - 0x6c], eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41307a
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x68]
push ecx
push 0x42e33c
push edx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x54], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41307a
mov eax, dword [ebp - 0x68]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str._d._d._d._d
lea edi, [ebp - 0x58]
call fcn.00407860
add esp, 0x14
mov eax, dword [ebp - 0x6c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0x5c]
push ecx
push 0x40
lea edx, [ebp - 0x50]
push edx
push ebx
call esi
test eax, eax
je 0x41313d
cmp dword [ebp - 0x5c], 0x40
jne 0x41313d
mov eax, dword [ebp - 0x14]
push 0
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x5c]
push ecx
push 0xf8
lea edx, [ebp - 0x188]
push edx
push ebx
call esi
test eax, eax
je 0x41313d
cmp dword [ebp - 0x5c], 0xf8
jne 0x41313d
mov eax, dword [ebp - 0x180]
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x54], eax
call dword [sym.imp.MSVCR80.dll__gmtime32]
mov esi, eax
mov ecx, 9
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x88]
push edx
mov edx, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x80]
push ecx
mov ecx, dword [ebp - 0x7c]
push edx
add eax, 1
push eax
add ecx, 0x76c
push ecx
push str.__04d__02d__02d__02d:_02d:_02d_GMT
lea edi, [ebp - 0x64]
call fcn.00407860
add esp, 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x64]
push edx
push eax
lea ebx, [ebp - 0x58]
call fcn.00406000
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41317a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4131a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x60]
jmp 0x4131b2
push ebx
mov ecx, 0x42e550
call fcn.00405e20
mov eax, ebx
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.0042575e
mov esp, ebp
pop ebp
ret