Function at 0x403870
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x541ee6
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x595790]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
mov eax, dword [0x595790]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov ebx, ecx
call fcn.00417384
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4038d3
push 0x80004005
call fcn.00401b40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push ebx
mov dword [esp + 0x43c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x403bf2
push str.GetNCCtrlInterfaceW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x403beb
push 0x3ea
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.00518320
mov edx, dword [esp + 0x30]
add esp, 0xc
add edx, 0x3c
push edx
call edi
mov edi, eax
mov dword [esp + 0x28], edi
test edi, edi
je 0x403beb
mov eax, dword [edi]
call eax
test eax, eax
je 0x403beb
mov ecx, dword [edi + 4]
call ecx
test eax, eax
jne 0x40395e
xor ecx, ecx
jmp 0x403972
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x403963
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004019d0
lea edx, [esp + 0x30]
push edx
push ebx
mov dword [esp + 0x34], 2
call sub.VERSION.dll_GetFileVersionInfoSizeW
xor ecx, ecx
mov edi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00417344
mov esi, eax
add esp, 4
test esi, esi
je 0x403a20
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4039e8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x56e5bc
push esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [esp + 0x2c], 0
jmp 0x4039f0
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x18]
push esi
call fcn.00417339
add esp, 4
cmp dword [esp + 0x2c], 0
jne 0x403a20
movzx ecx, bx
shr edi, 0x10
push edi
push ecx
mov eax, ebx
shr eax, 0x10
push eax
lea edx, [esp + 0x40]
push str._Ver._d._d_d
push edx
call fcn.00516767
add esp, 0x14
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00405340
add esp, 0xc
mov byte [esp + 0x438], 1
mov ecx, dword [eax]
mov esi, dword [esp + 0x10]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x403a96
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x403a88
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x403a88
push eax
call fcn.00405630
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x403a7f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x10], ebx
jmp 0x403a96
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004019d0
mov byte [esp + 0x438], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403abe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x24]
mov ecx, dword [ebx + 0x1ac]
lea esi, [ebx + 0x1a0]
test ecx, ecx
jne 0x403ad6
xor eax, eax
jmp 0x403ade
mov eax, dword [esi + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [esi + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x403b13
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x14], 0
mov eax, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
push 1
push edi
call fcn.00404d90
add esp, 0x14
add edi, 4
mov dword [esi + 0x10], edi
jmp 0x403b31
cmp ecx, edi
jbe 0x403b1c
call fcn.00515f7c
mov eax, dword [esi]
push edi
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
mov eax, esi
call fcn.00404460
mov ecx, dword [ebx + 0x17c]
lea esi, [ebx + 0x170]
test ecx, ecx
jne 0x403b45
xor eax, eax
jmp 0x403b4d
mov eax, dword [esi + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [esi + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x403b69
mov eax, dword [esp + 0x28]
mov dword [edi], eax
add edi, 4
mov dword [esi + 0x10], edi
jmp 0x403b87
cmp ecx, edi
jbe 0x403b72
call fcn.00515f7c
mov eax, dword [esi]
push edi
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
mov eax, esi
call fcn.00411f40
mov ecx, dword [ebx + 0x194]
lea esi, [ebx + 0x188]
test ecx, ecx
jne 0x403b9b
xor eax, eax
jmp 0x403ba3
mov eax, dword [esi + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [esi + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x403bc5
mov eax, dword [esp + 0x20]
mov dword [edi], eax
add edi, 4
mov dword [esi + 0x10], edi
inc dword [ebx + 0x1bc]
jmp 0x403bf2
cmp ecx, edi
jbe 0x403bce
call fcn.00515f7c
mov eax, dword [esi]
push edi
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
mov eax, esi
call fcn.00411f40
inc dword [ebx + 0x1bc]
jmp 0x403bf2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x438], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00515ce5
mov esp, ebp
pop ebp
ret 4