Function at 0x41020510
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41148d01
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x411bade8]
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
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x230], ebx
push 0x411584dc
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x22c], eax
xor edi, edi
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x23c], ebx
call fcn.41002090
mov dword [ebp - 4], ebx
call fcn.41040000
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41020590
push 0x80004005
call fcn.410011f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
mov eax, dword [0x411631e8]
mov ecx, dword [0x411631e0]
mov edx, dword [0x411631e4]
push 0x1f4
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x218], ecx
mov ecx, dword [0x411631ec]
mov dword [ebp - 0x214], edx
mov edx, dword [0x411631f0]
lea eax, [ebp - 0x204]
push ebx
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x208], edx
call fcn.4112eb40
add esp, 0xc
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x218]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x41020766
lea eax, [esi + 0xf]
push eax
call fcn.4112d79a
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x41020766
push edi
push esi
push ebx
lea ecx, [ebp - 0x218]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41020766
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x238]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 0x234], 0x4116318c
mov dword [ebp - 0x230], 0x4116316c
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41020766
call fcn.41040000
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41020586
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x238]
movzx edx, word [eax + 2]
mov ecx, dword [ebp + ebx*4 - 0x234]
movzx eax, word [eax]
push ecx
push edx
push eax
lea ecx, [ebp - 0x224]
push str.StringFileInfo_04x_04x_s
push ecx
mov byte [ebp - 4], 2
call fcn.41001b10
mov esi, dword [ebp - 0x224]
add esp, 0x14
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x240]
push eax
push esi
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x410207d7
mov ecx, dword [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.41002040
push 2
push 0x4116312c
lea ecx, [ebp - 0x21c]
call fcn.41001a50
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41020731
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
cmp ebx, 2
jl 0x41020675
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x228]
push ecx
push 0x41158aa4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41020766
mov eax, dword [ebp - 0x228]
test eax, eax
jne 0x41020800
push edi
call fcn.4112d82e
mov esi, dword [ebp - 0x22c]
add esp, 4
push str.GetVersion_failed
mov ecx, esi
call fcn.41002090
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410207a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410207d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x41020913
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41020766
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x41020766
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx esi, word [eax + 0xe]
movzx ebx, word [eax + 0xc]
push edi
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x224], edx
call fcn.4112d82e
movzx edx, word [ebp - 0x224]
movzx eax, word [ebp - 0x230]
push ebx
push esi
push edx
push eax
lea ecx, [ebp - 0x220]
push str._i._i._i._i
push ecx
call fcn.41001b10
mov esi, dword [ebp - 0x220]
mov eax, dword [esi - 0xc]
add esp, 0x1c
push eax
push esi
lea ecx, [ebp - 0x21c]
call fcn.41001a50
mov eax, dword [0x411bc380]
push 0x208
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x410208ab
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x220]
push str._from:__s
push edx
call fcn.41001b10
mov esi, dword [ebp - 0x220]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
push esi
lea ecx, [ebp - 0x21c]
call fcn.41001a50
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
push eax
call fcn.41003530
mov edi, dword [ebp - 0x22c]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410208e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41020911
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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.4112e1a6
mov esp, ebp
pop ebp
ret