Function at 0x436a10
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x430]
sub esp, 0x430
push 0xffffffffffffffff
push 0x49aaea
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4c2c40]
xor eax, ebp
mov dword [ebp + 0x42c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x208
lea eax, [ebp + 0x224]
xor ebx, ebx
push eax
mov edi, ecx
push ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x224]
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436a83
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp + 0x224]
push ecx
lea esi, [ebp]
call fcn.00401c20
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x436ab1
lea eax, [ebp + 4]
lea edx, [ebp - 0x48]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x436af0
push 7
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push str.0.0.0.0
mov esi, edi
mov word [edi + 4], bx
call fcn.00401c20
cmp dword [ebp + 0x18], 8
jb 0x436c8c
mov eax, dword [ebp + 4]
push eax
jmp 0x436c84
push esi
call fcn.0045a875
push 0x208
lea ecx, [ebp + 0x1c]
push ebx
push ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x11], 1
call fcn.0047dfc0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 4]
add esp, 0x10
cmp dword [ebp + 0x18], 8
jae 0x436b1f
lea eax, [ebp + 4]
mov edx, dword [ebp - 0x18]
push edx
push esi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x436b6f
push ebx
push 0x4a9f54
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], al
call fcn.00401a10
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xb4]
push ecx
mov byte [ebp - 4], 2
call fcn.0040f0a0
push 0x4b62a0
lea edx, [ebp - 0xb4]
push edx
call fcn.0047e716
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0x4ac1dc
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x436bca
push 0x4a9f54
lea ecx, [ebp - 0x40]
call fcn.00401570
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x8c]
push ecx
mov byte [ebp - 4], 3
call fcn.0040f0a0
push 0x4b62a0
lea edx, [ebp - 0x8c]
push edx
call fcn.0047e716
mov byte [ebp - 0x11], 0
mov eax, 0x436bc5
ret
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._d._d._d._d
lea edx, [ebp + 0x1c]
push 0x104
push edx
call fcn.00478ef6
add esp, 0x1c
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0045a870
add esp, 4
cmp byte [ebp - 0x11], 1
jne 0x436c24
lea edx, [ebp + 0x1c]
lea eax, [ebp - 0x64]
call fcn.004015e0
mov byte [ebp - 4], 5
mov ebx, 2
jmp 0x436c3d
mov edx, str.0.0.0.0
lea eax, [ebp - 0x40]
call fcn.004015e0
mov dword [ebp - 4], 6
mov ebx, 4
xor ecx, ecx
mov dword [edi + 0x14], ecx
push 0xffffffffffffffff
mov dword [edi + 0x18], 7
mov word [edi + 4], cx
push ecx
mov ecx, edi
mov dword [ebp - 0x1c], ebx
call fcn.00401b70
or ebx, 1
test bl, 4
je 0x436c6d
lea ecx, [ebp - 0x40]
and ebx, 0xfffffffb
call fcn.00401620
test bl, 2
je 0x436c7a
lea ecx, [ebp - 0x64]
call fcn.00401620
cmp dword [ebp + 0x18], 8
jb 0x436c8c
mov ecx, dword [ebp + 4]
push ecx
call fcn.0045a870
add esp, 4
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 + 0x42c]
xor ecx, ebp
call fcn.00478599
add ebp, 0x430
mov esp, ebp
pop ebp
ret