Function at 0x403410
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5b00cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
cmp dword [0x5f5284], ebx
mov edi, ecx
mov dword [ebp - 0x21c], edi
jne 0x403560
call fcn.0041a360
test al, al
mov ecx, dword [0x5f49d0]
push 0x104
je 0x4034dc
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
call fcn.005662c8
add esp, 4
push eax
push esi
push ebx
lea ecx, [ebp - 0x20c]
push ecx
mov dword [0x5f5284], eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x403560
mov edx, dword [0x5f5284]
push edx
call fcn.0056612f
mov dword [0x5f5284], ebx
add esp, 4
mov eax, 0x57e81c
mov ebx, edi
call fcn.00401ed0
mov esi, dword [ebp + 8]
test esi, esi
je 0x4034c9
call fcn.004ab850
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00566120
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x108]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
push esi
call fcn.005662c8
add esp, 4
push eax
push esi
push ebx
lea ecx, [ebp - 0x108]
push ecx
mov dword [0x5f5284], eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x403560
mov edx, dword [0x5f5284]
push edx
call fcn.0056612f
mov dword [0x5f5284], ebx
add esp, 4
mov eax, 0x57e81c
mov ebx, edi
call fcn.00401ed0
mov esi, dword [ebp + 8]
test esi, esi
je 0x4034c9
call fcn.004ab850
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00566120
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x214], ebx
call fcn.0041a360
test al, al
mov dword [ebp - 0x210], ebx
je 0x403709
mov eax, 0x57e6d0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403581
sub eax, edx
sar eax, 1
mov ecx, 0x57e6d0
lea edx, [ebp - 0x210]
call fcn.004ab9d0
mov edi, 1
lea esi, [ebp - 0x218]
lea eax, [ebp - 0x224]
mov byte [ebp - 0x218], bl
mov dword [ebp - 0x224], ebx
call fcn.004ab970
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x4035d3
mov dword [eax + 0x10], 0x600
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
call fcn.004abc10
push eax
lea ecx, [ebp - 0x234]
push ecx
lea eax, [ebp + 8]
call fcn.004abc10
push eax
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x238]
push eax
call fcn.004ac650
add esp, 0xc
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.004ac650
add esp, 0xc
mov ebx, eax
lea edi, [ebp - 0x210]
call fcn.004abdf0
mov esi, dword [ebp - 0x22c]
test esi, esi
je 0x403638
call fcn.004ab850
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x403647
call fcn.004ab850
mov esi, dword [ebp - 0x234]
test esi, esi
je 0x403656
call fcn.004ab850
mov esi, dword [ebp - 0x220]
test esi, esi
je 0x403665
call fcn.004ab850
mov esi, dword [ebp - 0x224]
test esi, esi
je 0x403674
call fcn.004ab850
mov edi, dword [ebp - 0x210]
test edi, edi
je 0x4036ab
cmp dword [edi + 0x10], 0x100
jne 0x40368f
mov eax, dword [edi + 4]
add eax, 1
jmp 0x4036b0
xor esi, esi
push 0x2cf
push str.........UniversalREALstring.cpp
mov edx, 0x57e0a8
lea ecx, [esi + 4]
call fcn.004f1fc0
add esp, 8
mov eax, 0x5f4c08
lea edx, [ebp - 0x230]
push edx
mov edx, dword [0x5f5284]
lea ecx, [ebp - 0x228]
push ecx
push eax
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4036fa
mov ecx, dword [ebp - 0x228]
mov eax, ecx
lea esi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4036e0
sub eax, esi
sar eax, 1
lea edx, [ebp - 0x214]
call fcn.004ab9d0
test edi, edi
je 0x4037c5
mov esi, edi
jmp 0x4037c0
mov edi, 0x19
mov esi, str.StringFileInfo040904B0_
lea eax, [ebp - 0x210]
call fcn.004ab970
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x40372f
mov dword [eax + 0x10], 0x600
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x220]
push edx
call fcn.004ac650
mov eax, dword [eax]
add esp, 0xc
cmp eax, ebx
je 0x403757
mov eax, dword [eax + 4]
add eax, 1
jmp 0x40375c
mov eax, 0x57e81c
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x228]
push edx
push eax
mov eax, dword [0x5f5284]
push eax
call sub.VERSION.dll_VerQueryValueA
mov esi, dword [ebp - 0x220]
cmp esi, ebx
mov edi, eax
je 0x403787
call fcn.004ab850
mov esi, dword [ebp - 0x210]
cmp esi, ebx
je 0x403796
call fcn.004ab850
cmp edi, ebx
je 0x40380b
mov eax, dword [ebp - 0x228]
lea ebx, [ebp - 0x210]
call fcn.00401ed0
lea edi, [ebp - 0x214]
call fcn.004abdf0
mov esi, dword [ebp - 0x210]
test esi, esi
je 0x4037c5
call fcn.004ab850
cmp dword [ebp - 0x214], 0
je 0x403809
mov ecx, dword [ebp - 0x214]
cmp dword [ecx + 0x10], 0x8000100
je 0x403809
mov eax, dword [ebp - 0x214]
mov edx, dword [ebp - 0x21c]
push 0x8000100
push ecx
mov ecx, esp
mov dword [ecx], eax
add dword [eax], 1
push edx
call fcn.00529150
mov esi, dword [ebp - 0x214]
add esp, 0xc
xor ebx, ebx
jmp 0x403820
xor ebx, ebx
mov esi, dword [ebp - 0x214]
cmp esi, ebx
mov eax, dword [ebp - 0x21c]
mov dword [eax], esi
je 0x403825
add dword [esi], 1
call fcn.004ab850
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x403831
call fcn.004ab850
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00566120
mov esp, ebp
pop ebp
ret