Function at 0x439630
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9e43
mov eax, dword fs:[0]
push eax
sub esp, 0x304
mov eax, dword [0x65bfd4]
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 ebx, ecx
mov dword [ebp - 0x250], ebx
push str.vcruntime140.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x439bc7
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.0040cb60
mov ecx, eax
test ecx, ecx
je 0x439caf
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439cb9
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
lea edi, [eax + 0x10]
mov dword [ebp - 0x244], edi
mov byte [ebp - 4], 1
call fcn.0040cb60
mov ecx, eax
test ecx, ecx
je 0x439cc0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439cca
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
lea esi, [eax + 0x10]
mov dword [ebp - 0x234], esi
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x439740
movzx eax, ax
lea ecx, [ebp - 0x234]
push eax
call fcn.0040d3d0
mov esi, dword [ebp - 0x234]
jmp 0x4398c8
lea ebx, [ebp - 0x218]
lea ecx, [ebx + 2]
nop dword [eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x439750
sub ebx, ecx
sar ebx, 1
jne 0x439808
cmp dword [esi - 0xc], 0
lea ecx, [esi - 0x10]
mov ebx, dword [ecx]
je 0x4398c8
cmp dword [ecx + 0xc], 0
lea edx, [ecx + 0xc]
jge 0x439798
cmp dword [esi - 8], 0
jl 0x439cd1
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x4398c8
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4397d5
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439cdb
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x439cdb
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439ce4
lock inc dword [ebx + 0x14]
lea eax, [ebx + 8]
lea esi, [eax + 0x10]
mov dword [ebp - 0x234], esi
jmp 0x4398c8
lea esi, [eax + 0x10]
mov dword [ebp - 0x234], esi
jmp 0x4398c8
mov eax, dword [esi - 0xc]
lea edx, [ebp - 0x218]
sub edx, esi
mov dword [ebp - 0x24c], eax
sar edx, 1
mov dword [ebp - 0x238], edx
test ebx, ebx
js 0x439ced
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x439852
push ebx
lea ecx, [ebp - 0x234]
call fcn.00401fd8
mov esi, dword [ebp - 0x234]
mov edx, dword [ebp - 0x238]
cmp edx, dword [ebp - 0x24c]
ja 0x4398a2
mov eax, dword [esi - 8]
lea ecx, [ebx + ebx]
lea edx, [esi + edx*2]
test ecx, ecx
je 0x4398b6
test edx, edx
jne 0x43987d
call fcn.005b0782
mov dword [eax], 0x16
call fcn.005b06a9
jmp 0x4398b6
add eax, eax
cmp eax, ecx
jae 0x439895
call fcn.005b0782
mov dword [eax], 0x22
call fcn.005b06a9
jmp 0x4398b6
push ecx
push edx
push esi
call fcn.005ad520
add esp, 0xc
jmp 0x4398b6
push ebx
lea eax, [ebp - 0x218]
push eax
push dword [esi - 8]
push esi
call fcn.004021b4
add esp, 0x10
cmp ebx, dword [esi - 8]
jg 0x439cd1
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 3
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x439a41
push eax
call fcn.005b5958
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x439a41
push ebx
push dword [ebp - 0x24c]
push dword [ebp - 0x258]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x439921
push ebx
call fcn.005b3341
add esp, 4
jmp 0x439a41
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x238], 0
push eax
lea eax, [ebp - 0x238]
push eax
push 0x62b218
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x439a41
sub esp, 8
lea ecx, [ebp - 0x310]
call fcn.00413bf0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x238]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
lea ecx, [ebp - 0x300]
push eax
call fcn.0042f440
push ecx
mov edx, 0x629364
mov ecx, eax
call fcn.00410410
add esp, 4
mov ecx, eax
call fcn.0042f440
push ecx
mov edx, 0x629364
mov ecx, eax
call fcn.00410410
add esp, 4
mov ecx, eax
call fcn.0042f440
push ecx
mov edx, 0x629364
mov ecx, eax
call fcn.00410410
add esp, 4
mov ecx, eax
call fcn.0042f440
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.00414480
mov byte [ebp - 4], 5
lea edx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
jb 0x4399fc
mov edx, dword [ebp - 0x230]
test edx, edx
jne 0x4399fc
xor ecx, ecx
jmp 0x439a10
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439a01
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x244]
call fcn.004020e5
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.00407500
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 3
call fcn.00413820
mov edi, dword [ebp - 0x244]
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x439a88
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439cf7
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x439cf7
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x25c]
call fcn.0045ed80
mov ecx, dword [ebp - 0x250]
push eax
push 0
push 0x11783
mov byte [ebp - 4], 6
call fcn.0045e3b0
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 1
call fcn.004391d0
mov byte [ebp - 0x240], 1
call fcn.0040cb60
mov ecx, eax
test ecx, ecx
je 0x439cfe
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439d08
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x23c], eax
push 3
push 0x62f994
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 7
call fcn.004020e5
mov eax, dword [ebp - 0x250]
mov esi, dword [ebp - 0x23c]
push esi
push 0
mov ecx, dword [eax]
push 0x11784
call fcn.00417de0
mov byte [ebp - 4], 8
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x439b6b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439d0f
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x439d0f
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x254]
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x439c77
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439d16
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x439d16
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x439c77
mov byte [ebp - 0x240], 0
call fcn.0040cb60
mov ecx, eax
test ecx, ecx
je 0x439d1d
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439d27
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x23c], eax
push 2
push 0x6270f8
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 9
call fcn.004020e5
mov esi, dword [ebp - 0x23c]
mov ecx, dword [ebx]
push esi
push 0
push 0x11784
call fcn.00417de0
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x439c6d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439d2e
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x439d2e
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x254]
mov byte [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x439c89
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x248], 0
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.005a909b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004022df
call edx
jmp 0x4396d9
push 0x80004005
call fcn.004022df
call edx
jmp 0x43970c
push 0x80070057
call fcn.004022df
mov ecx, edx
call esi
jmp 0x4397d5
mov ecx, ebx
call edx
jmp 0x4397fa
push 0x80070057
call fcn.004022df
call edx
jmp 0x439a88
push 0x80004005
call fcn.004022df
call edx
jmp 0x439aed
call edx
jmp 0x439b6b
call edx
jmp 0x439c77
push 0x80004005
call fcn.004022df
call edx
jmp 0x439bf4
call edx
jmp 0x439c6d