Function at 0x40e0d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f858
mov eax, dword fs:[0]
push eax
sub esp, 0x50c
mov eax, dword [0x47c078]
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 [0x483994]
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x40e15d
cmp byte [eax + 4], 2
ja 0x40e15d
push 2
push str.libsystem::file::version
push eax
lea ecx, [ebp - 0x2d0]
call fcn.0040abf0
mov esi, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.00404160
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040ddd0
lea ecx, [ebp - 0x28]
call fcn.00402d70
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 4], 0xffffffff
call fcn.0040b170
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x40e167
mov eax, dword [ebx]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x4fc], eax
test eax, eax
jne 0x40e21a
mov eax, dword [0x483994]
test eax, eax
je 0x40e1f7
cmp byte [eax + 4], 3
ja 0x40e1f7
push str.GetFileVersionInfoSize
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00409380
mov edx, dword [eax]
mov ecx, eax
mov dword [ebp - 4], 2
call dword [edx + 4]
push 3
push str.libsystem::file::version
push dword [0x483994]
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 0x4f4], eax
call fcn.0040abf0
lea ecx, [ebp - 0x4f4]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.004047a0
lea ecx, [ebp - 0x2d0]
call fcn.0040b170
lea ecx, [ebp - 0xb0]
call fcn.00409700
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x40e55e
lea ecx, [ebp - 0x4f5]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040dec0
cmp dword [ebx + 0x14], 8
mov eax, ebx
mov dword [ebp - 4], 4
jb 0x40e23b
mov eax, dword [ebx]
mov edi, dword [ebp - 0x1c]
push edi
push dword [ebp - 0x4fc]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40e306
mov eax, dword [0x483994]
test eax, eax
je 0x40e2cc
cmp byte [eax + 4], 3
ja 0x40e2cc
push str.GetFileVersionInfo
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00409380
mov edx, dword [eax]
mov ecx, eax
mov byte [ebp - 4], 5
call dword [edx + 4]
push 3
push str.libsystem::file::version
push dword [0x483994]
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 0x4f4], eax
call fcn.0040abf0
lea ecx, [ebp - 0x4f4]
mov byte [ebp - 4], 6
push ecx
mov ecx, eax
call fcn.004047a0
lea ecx, [ebp - 0x2d0]
call fcn.0040b170
lea ecx, [ebp - 0xb0]
call fcn.00409700
test edi, edi
je 0x40e1f7
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x40e2f7
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e57a
push ecx
push edi
call fcn.0042777b
add esp, 8
jmp 0x40e1f7
lea eax, [ebp - 0x4fc]
mov dword [ebp - 0x510], 0
push eax
lea eax, [ebp - 0x510]
mov dword [ebp - 0x4fc], 0x34
push eax
push 0x463ad8
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40e3ec
mov eax, dword [0x483994]
test eax, eax
je 0x40e3b2
cmp byte [eax + 4], 3
ja 0x40e3b2
push str.VerQueryValue
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00409380
mov edx, dword [eax]
mov ecx, eax
mov byte [ebp - 4], 7
call dword [edx + 4]
push 3
push str.libsystem::file::version
push dword [0x483994]
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 0x4f4], eax
call fcn.0040abf0
lea ecx, [ebp - 0x4f4]
mov byte [ebp - 4], 8
push ecx
mov ecx, eax
call fcn.004047a0
lea ecx, [ebp - 0x2d0]
call fcn.0040b170
lea ecx, [ebp - 0xb0]
call fcn.00409700
test edi, edi
je 0x40e1f7
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x40e3dd
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e57a
push ecx
push edi
call fcn.0042777b
add esp, 8
jmp 0x40e1f7
mov eax, dword [ebp - 0x510]
mov dword [ebp - 0x50c], 0
mov dword [ebp - 0x508], 0
mov dword [ebp - 0x504], 0
mov dword [ebp - 0x500], 0
movzx esi, word [eax + 0x12]
mov dword [ebp - 0x50c], esi
movzx ecx, word [eax + 0x10]
mov dword [ebp - 0x514], ecx
mov dword [ebp - 0x508], ecx
movzx ecx, word [eax + 0x16]
mov dword [ebp - 0x518], ecx
mov dword [ebp - 0x504], ecx
movzx ecx, word [eax + 0x14]
mov eax, dword [0x483994]
mov dword [ebp - 0x4f4], ecx
mov dword [ebp - 0x500], ecx
test eax, eax
je 0x40e511
cmp byte [eax + 4], 1
ja 0x40e511
push 1
push str.libsystem::file::version
push eax
lea ecx, [ebp - 0x4f0]
call fcn.0040abf0
push str.File__
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.0040dcf0
mov esi, eax
mov ecx, ebx
lea eax, [ebp - 0x58]
push eax
call fcn.00404160
push eax
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.0040ddd0
push str.__version_loaded:
mov ecx, eax
call fcn.0040dcf0
mov esi, eax
lea ecx, [ebp - 0x50c]
lea eax, [ebp - 0x40]
push eax
call fcn.0040d860
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.0040ddd0
lea ecx, [ebp - 0x40]
call fcn.00402d70
lea ecx, [ebp - 0x58]
call fcn.00402d70
lea ecx, [ebp - 0x4f0]
call fcn.0040b170
mov eax, dword [ebp - 0x500]
mov ebx, dword [ebp - 0x508]
mov esi, dword [ebp - 0x50c]
mov dword [ebp - 0x4f4], eax
mov eax, dword [ebp - 0x504]
mov dword [ebp - 0x518], eax
jmp 0x40e517
mov ebx, dword [ebp - 0x514]
test edi, edi
je 0x40e544
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x40e53a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e57a
push ecx
push edi
call fcn.0042777b
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x518]
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x4f4]
mov dword [eax + 0xc], ecx
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.00427a1e
mov esp, ebp
pop ebp
ret
call fcn.004432c6
int3