Function at 0x402e00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541b89
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
mov eax, dword [0x594ca8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov ebx, 1
push 0x570590
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], ebx
call fcn.00531d70
push 0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00532c70
test al, al
je 0x402f01
lea ecx, [ebp - 0x68]
call fcn.00531350
mov ecx, eax
call fcn.00531350
test eax, eax
je 0x402f01
mov ecx, dword [eax + 0x20]
lea ebx, [ecx + 8]
mov esi, str.version
mov edx, ebx
lea ecx, [ecx]
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x402ea0
test cl, cl
je 0x402e9c
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x402ea0
add edx, 2
add esi, 2
test cl, cl
jne 0x402e80
xor ecx, ecx
jmp 0x402ea5
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x402e76
mov ecx, eax
call fcn.00531440
lea ecx, [ebp - 0x1c]
push ecx
mov ebx, eax
call fcn.00402ce0
add esp, 4
mov byte [ebp - 4], 3
mov esi, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.00404900
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov ebx, 1
add eax, 0xfffffff0
mov dword [ebp - 0x14], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403001
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403001
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x402fef
push eax
call fcn.004169f4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x18]
push esi
push eax
push ecx
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x402fe6
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x57058c
push esi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x402fe6
call fcn.00417515
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402f7d
push 0x80004005
call fcn.00404860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 0xe]
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
lea ecx, [ebp - 0x10]
push str._d._d._d
push ecx
call fcn.00403cc0
push esi
call fcn.004169ff
mov esi, dword [ebp + 8]
add esp, 0x18
lea edx, [ebp - 0x10]
push edx
mov ecx, esi
call fcn.00404900
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x402eec
push esi
call fcn.004169ff
add esp, 4
mov esi, dword [ebp + 8]
push 0x5704e4
mov ecx, esi
call fcn.004040f0
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x68], vtable.TiXmlDocument.0
cmp eax, 0x59cb88
je 0x40301e
push eax
call fcn.004169ff
add esp, 4
lea ecx, [ebp - 0x68]
call fcn.00531a50
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403049
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret