Function at 0x41b150
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x4d3804]
mov dword [ebp - 0x1c], eax
push esi
push edi
mov dword [ebp - 0x288], ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0047d63e
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0047d63e
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 8], 0
je 0x41b19a
cmp dword [ebp - 4], 0
jne 0x41b1a3
mov dword [ebp - 0xc], 8
jmp 0x41b1e9
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x288]
call dword [edx + 0x30]
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x28c], edx
mov eax, dword [ebp - 0x290]
or eax, dword [ebp - 0x28c]
jne 0x41b1e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x288]
cmp dword [ecx], 0
je 0x41b40a
cmp dword [ebp - 8], 0
je 0x41b40a
mov edx, dword [ebp - 0x288]
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
and ecx, 8
je 0x41b309
mov dword [ebp - 0x278], 0
lea edx, [ebp - 0x274]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0
jbe 0x41b309
mov ecx, dword [ebp - 0x270]
push ecx
call fcn.0047d781
add esp, 4
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0
je 0x41b309
mov edx, dword [ebp - 0x27c]
push edx
mov eax, dword [ebp - 0x270]
push eax
mov ecx, dword [ebp - 0x274]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41b2fa
mov ax, word [0x4b2e2c]
mov word [ebp - 0x284], ax
lea ecx, [ebp - 0x280]
push ecx
lea edx, [ebp - 0x278]
push edx
lea eax, [ebp - 0x284]
push eax
mov ecx, dword [ebp - 0x27c]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x41b2d3
mov dword [ebp - 0x278], 0
jmp 0x41b2fa
mov edx, dword [ebp - 0x278]
mov esi, dword [edx + 0xc]
xor edi, edi
mov eax, dword [ebp - 0x278]
mov eax, dword [eax + 8]
xor edx, edx
mov cl, 0x20
call fcn.0047d7a0
add esi, eax
adc edi, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp - 0x27c]
push ecx
call fcn.0047d669
add esp, 4
mov dword [ebp - 0x26c], str._unknown_
lea edx, [ebp - 0x268]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x288]
call fcn.0041b470
test eax, eax
je case.0x41b354.7
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 9
ja case.0x41b354.7
mov ecx, dword [ebp - 0x294]
jmp dword [ecx*4 + 0x41b441]
mov dword [ebp - 0x26c], str._nosymbols_
jmp case.0x41b354.7
mov dword [ebp - 0x26c], str.COFF
jmp case.0x41b354.7
mov dword [ebp - 0x26c], 0x4b2e08
jmp case.0x41b354.7
mov dword [ebp - 0x26c], 0x4b2e04
jmp case.0x41b354.7
mov dword [ebp - 0x26c], str._exported_
jmp case.0x41b354.7
mov dword [ebp - 0x26c], str._deferred_
jmp case.0x41b354.7
mov dword [ebp - 0x26c], 0x4b2de8
jmp case.0x41b354.7
mov dword [ebp - 0x26c], str.Virtual
jmp case.0x41b354.7
mov dword [ebp - 0x26c], 0x4b2ddc
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x26c]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x288]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x288]
mov eax, dword [edx]
mov edx, dword [ecx]
mov ecx, eax
call dword [edx + 8]
cmp dword [ebp - 8], 0
je 0x41b41c
mov eax, dword [ebp - 8]
push eax
call fcn.0047d669
add esp, 4
cmp dword [ebp - 4], 0
je 0x41b42e
mov ecx, dword [ebp - 4]
push ecx
call fcn.0047d669
add esp, 4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
call fcn.0047bda9
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18