Function at 0x40e2e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432610
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], edx
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
push str.Version.dll
mov dword [ebp - 0x38], eax
call fcn.00402c19
mov dword [ebp - 4], 0
lea eax, [ebp - 0x50]
push eax
call fcn.00415240
mov ecx, eax
call fcn.00415300
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00402b04
test esi, esi
je 0x40e500
push str.VerQueryValueW
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40e500
push str.Version.dll
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x21], 0
call fcn.00402c19
mov dword [ebp - 4], 1
lea eax, [ebp - 0x50]
push eax
call fcn.00415240
mov ecx, eax
call fcn.00415300
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00402b04
test edi, edi
je 0x40e4fb
push str.GetFileVersionInfoExW
push edi
call esi
push str.GetFileVersionInfoSizeExW
push edi
mov dword [ebp - 0x20], eax
call esi
cmp dword [ebp - 0x20], 0
mov edx, eax
je 0x40e42f
test edx, edx
je 0x40e42f
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
mov ecx, ebx
call fcn.00402bad
push eax
push 0
call edx
mov edi, eax
test edi, edi
je 0x40e4fb
push edi
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 8
mov esi, eax
mov ecx, ebx
push esi
push edi
push dword [ebp - 0x18]
call fcn.00402bad
push eax
push 0
call dword [ebp - 0x20]
test eax, eax
jne 0x40e48d
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov al, byte [ebp - 0x21]
add esp, 4
jmp 0x40e502
push str.GetFileVersionInfoW
push edi
call esi
push str.GetFileVersionInfoSizeW
push edi
mov dword [ebp - 0x20], eax
call esi
cmp dword [ebp - 0x20], 0
mov edx, eax
je 0x40e4fb
test edx, edx
je 0x40e4fb
push 0
mov ecx, ebx
call fcn.00402bad
push eax
call edx
mov edi, eax
test edi, edi
je 0x40e4fb
push edi
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 8
mov esi, eax
mov ecx, ebx
push esi
push edi
push 0
call fcn.00402bad
push eax
call dword [ebp - 0x20]
test eax, eax
je 0x40e4f1
test esi, esi
je 0x40e4fb
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0x437390
push esi
call dword [ebp - 0x28]
test eax, eax
je 0x40e4f1
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40e4f1
cmp dword [ebp - 0x1c], 0
jbe 0x40e4f1
cmp dword [ecx], 0xfeef04bd
jne 0x40e4f1
movzx eax, word [ecx + 0xa]
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 0x21], 1
mov dword [edx], eax
movzx eax, word [ecx + 8]
mov edx, dword [ebp - 0x30]
mov dword [edx], eax
movzx eax, word [ecx + 0xe]
mov edx, dword [ebp - 0x34]
mov dword [edx], eax
movzx eax, word [ecx + 0xc]
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov al, byte [ebp - 0x21]
jmp 0x40e502
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004226d8
mov esp, ebp
pop ebp
ret