Function at 0x10015470
Capabilities:
Get file version info
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10093ffc
mov eax, dword fs:[0]
push eax
sub esp, 0x50c
mov eax, dword [0x100b0380]
xor eax, esp
mov dword [esp + 0x508], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b0380]
xor eax, esp
push eax
lea eax, [esp + 0x520]
mov dword fs:[0], eax
xor ebp, ebp
mov edi, ecx
xor esi, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], ebp
cmp edi, ebp
je 0x100158f8
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x100158f8
push eax
push ebp
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [esp + 0x1c], ebx
cmp ebx, ebp
je 0x100158f8
push 0x206
lea ecx, [esp + 0x112]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x118], ax
call fcn.1007dcf0
add esp, 0xc
push 0x104
lea edx, [esp + 0x110]
push edx
push ebp
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x100158f1
push ebp
lea eax, [esp + 0x110]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebp
je 0x100158ef
push 0x100da440
push esi
call fcn.10079cfe
mov ebx, eax
add esp, 8
mov dword [esp + 0x24], ebx
cmp ebx, ebp
je 0x100158eb
push esi
push ebp
push ebx
call fcn.1007dcf0
add esp, 0xc
push ebx
push esi
push ebp
lea ecx, [esp + 0x118]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100158d8
lea eax, [esp + 0x10c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10015590
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x110]
push edx
lea esi, [edi + 0x78]
call fcn.10013510
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x54]
push ecx
push str.VarFileInfoTranslation
push ebx
mov dword [esp + 0x3c], ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100158d8
cmp dword [esp + 0x2c], 4
jb 0x100158d8
push 0x7e
lea eax, [esp + 0x92]
xor edx, edx
push ebp
push eax
mov word [esp + 0x98], dx
call fcn.1007dcf0
mov eax, dword [esp + 0x5c]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
add esp, 0xc
push ecx
push edx
lea eax, [esp + 0x94]
push str.StringFileInfo_04x_04x
push eax
mov ecx, 0x40
call fcn.10018220
add esp, 0x10
cmp eax, ebp
jl 0x100158d8
xor ecx, ecx
lea eax, [esp + 0x8c]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebp
mov word [esp + 0x38], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10015645
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x90]
push edx
lea esi, [esp + 0x3c]
call fcn.10013510
mov dword [esp + 0x528], ebp
lea eax, [esp + 0x70]
push eax
mov edi, str.FileDescription
mov ecx, esi
call fcn.10017180
add esp, 4
mov byte [esp + 0x528], 2
mov esi, 8
cmp dword [esp + 0x4c], esi
jb 0x100156a1
mov ecx, dword [esp + 0x38]
push ecx
call fcn.100799fa
add esp, 4
mov eax, dword [esp + 0x74]
xor edx, edx
mov edi, 7
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebp
mov word [esp + 0x38], dx
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x88], esi
jae 0x100156ca
lea eax, [esp + 0x74]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
cmp eax, ebp
je 0x1001570d
mov edx, dword [esp + 0x30]
mov eax, edx
lea esi, [eax + 2]
jmp 0x100156f0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x100156f0
sub eax, esi
mov esi, dword [esp + 0x18]
sar eax, 1
push eax
push edx
add esi, 0x40
call fcn.10013510
xor eax, eax
mov word [esp + 0x38], ax
lea eax, [esp + 0x8c]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10015726
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x90]
push ecx
lea esi, [esp + 0x3c]
call fcn.10013510
mov bl, 3
mov byte [esp + 0x528], bl
lea edx, [esp + 0x54]
push edx
mov edi, str.OriginalFileName
mov ecx, esi
call fcn.10017180
add esp, 4
mov byte [esp + 0x528], 4
push 0xffffffffffffffff
push ebp
push eax
lea eax, [esp + 0x7c]
call fcn.10013690
mov byte [esp + 0x528], bl
mov edi, 8
cmp dword [esp + 0x6c], edi
jb 0x10015798
mov eax, dword [esp + 0x58]
push eax
call fcn.100799fa
add esp, 4
mov ebx, 7
xor ecx, ecx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], cx
mov byte [esp + 0x528], 2
cmp dword [esp + 0x4c], edi
jb 0x100157c7
mov edx, dword [esp + 0x38]
push edx
call fcn.100799fa
add esp, 4
xor eax, eax
mov word [esp + 0x38], ax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebp
cmp dword [esp + 0x88], edi
jae 0x100157e7
lea eax, [esp + 0x74]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
call sub.VERSION.dll_VerQueryValueW
cmp eax, ebp
je 0x1001582d
mov edx, dword [esp + 0x20]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10015810
sub eax, esi
mov esi, dword [esp + 0x18]
sar eax, 1
push eax
push edx
add esi, 0x24
call fcn.10013510
push 0x206
lea edx, [esp + 0x31a]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x320], cx
call fcn.1007dcf0
lea eax, [esp + 0x320]
add esp, 0xc
push eax
lea eax, [esp + 0x110]
call fcn.100160d0
add esp, 4
test eax, eax
je 0x10015896
lea eax, [esp + 0x314]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10015872
mov esi, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x318]
push ecx
add esi, 0x5c
call fcn.10013510
mov dword [esp + 0x14], 1
mov dword [esp + 0x528], 0xffffffff
cmp dword [esp + 0x88], edi
jb 0x100158bf
mov edx, dword [esp + 0x74]
push edx
call fcn.100799fa
add esp, 4
xor eax, eax
mov dword [esp + 0x88], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x84], ebp
mov word [esp + 0x74], ax
push ebx
call fcn.10079d09
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
add esp, 4
jmp 0x100158f1
mov ebx, dword [esp + 0x1c]
mov esi, ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x520]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.10079a05
add esp, 0x518
ret