Function at 0x60110c0
Capabilities:
Get file version info

Disassembly:
mov eax, dword [0x6022280]
sub esp, 0x41c
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jne 0x601137c
cmp dword [0x6022284], edi
jne 0x601137c
cmp dword [0x6022288], edi
jne 0x601137c
cmp dword [0x602228c], edi
jne 0x601137c
mov eax, dword [0x6022264]
cmp eax, edi
jne 0x601110a
mov eax, 0x6019168
lea ecx, [esp + 0x1c]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
ja 0x601112c
pop edi
pop esi
mov eax, 0x3ed
pop ebx
add esp, 0x41c
ret 0x10
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x601114c
pop edi
pop esi
mov eax, 0x3f2
pop ebx
add esp, 0x41c
ret 0x10
mov eax, dword [0x6022264]
cmp eax, edi
jne 0x601115a
mov eax, 0x6019168
mov edx, dword [esp + 0x1c]
push ebx
push esi
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x6011185
push ebx
call fcn.06017907
add esp, 4
mov eax, 0x3ed
pop edi
pop esi
pop ebx
add esp, 0x41c
ret 0x10
lea eax, [esp + 0x24]
lea ecx, [esp + 0xc]
push eax
push ecx
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x60111b8
push ebx
call fcn.06017907
add esp, 4
mov eax, 0x3ed
pop edi
pop esi
pop ebx
add esp, 0x41c
ret 0x10
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0x6021080
push ebx
mov dword [esp + 0x24], edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x60111ef
push ebx
call fcn.06017907
add esp, 4
mov eax, 0x3ed
pop edi
pop esi
pop ebx
add esp, 0x41c
ret 0x10
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
shr ecx, 0x10
mov dword [0x6022280], ecx
mov edx, dword [eax + 8]
and edx, 0xffff
mov dword [0x6022284], edx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
mov dword [0x6022288], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0xc]
and edx, 0xffff
mov dword [0x602228c], edx
xor ecx, ecx
mov dword [esp + 0x10], edi
mov cx, word [eax + 2]
xor edx, edx
push ecx
mov dx, word [eax]
lea eax, [esp + 0x2c]
push edx
push str.StringFileInfo_04x_04xComments
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push ecx
push edx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x6011284
push ebx
call fcn.06017907
add esp, 4
mov eax, 0x3ed
pop edi
pop esi
pop ebx
add esp, 0x41c
ret 0x10
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov esi, edi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
mov ebp, ecx
push 1
push ebp
mov ecx, 0x6022250
call fcn.06002e00
test al, al
je 0x60112cd
mov edi, dword [0x6022254]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x6022254]
mov dword [0x6022258], ebp
mov byte [eax + ebp], 0
mov eax, dword [0x602228c]
test eax, eax
jne 0x60112ff
mov ecx, dword [0x6022288]
mov edx, dword [0x6022284]
mov eax, dword [0x6022280]
push ecx
push edx
push eax
lea ecx, [esp + 0x38]
push str.EBOOT_DLL_v_d._d._02d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x6011327
mov edx, dword [0x6022288]
mov ecx, dword [0x6022280]
push eax
mov eax, dword [0x6022284]
push edx
push eax
push ecx
lea edx, [esp + 0x3c]
push str.EBOOT_DLL_v_d._d._02d._02d
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, 0x6022240
push ebp
call fcn.06002e00
test al, al
je 0x6011372
mov edi, dword [0x6022244]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x6022244]
mov dword [0x6022248], ebp
mov byte [ecx + ebp], 0
push ebx
call fcn.06017907
add esp, 4
pop ebp
mov eax, dword [esp + 0x42c]
test eax, eax
je 0x601138f
mov edx, dword [0x6022280]
mov dword [eax], edx
mov eax, dword [esp + 0x430]
test eax, eax
je 0x60113a2
mov ecx, dword [0x6022284]
mov dword [eax], ecx
mov eax, dword [esp + 0x434]
test eax, eax
je 0x60113b5
mov edx, dword [0x6022288]
mov dword [eax], edx
mov eax, dword [esp + 0x438]
test eax, eax
je 0x60113c8
mov ecx, dword [0x602228c]
mov dword [eax], ecx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x41c
ret 0x10