Function at 0x10059590
Capabilities:
Get file size
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1009ed80
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d8dd0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ecx, dword [ecx]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x8000000
push 3
push 0
push 5
push SysReAllocString
push ecx
call edi
mov esi, eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x70], 0
or ebp, 0xffffffff
cmp esi, ebp
jne 0x100595f6
push 0
push 0
call fcn.100167a0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea eax, [esp + 0x58]
push eax
push esi
call ebx
push 0
test eax, eax
jne 0x10059610
push eax
call fcn.100167a0
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx]
push 0x8000000
push 3
push 0
push 5
push SysReAllocString
push eax
call edi
mov edi, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x14], edi
mov byte [esp + 0x70], 1
cmp edi, ebp
jne 0x10059645
push 0
push 0
call fcn.100167a0
lea edx, [esp + 0x60]
push edx
push edi
call ebx
test eax, eax
jne 0x10059658
push eax
push eax
call fcn.100167a0
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x60]
jne 0x1005966c
mov ecx, dword [esp + 0x5c]
cmp ecx, dword [esp + 0x64]
je 0x1005968e
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x14]
call fcn.1000dcc0
mov dword [esp + 0x70], ebp
lea ecx, [esp + 0x18]
call fcn.1000dcc0
xor al, al
jmp 0x10059a95
or eax, ecx
jne 0x100596b1
mov byte [esp + 0x70], al
lea ecx, [esp + 0x14]
call fcn.1000dcc0
mov dword [esp + 0x70], ebp
lea ecx, [esp + 0x18]
call fcn.1000dcc0
jmp 0x10059a93
push 0
push 0
push 0
push 2
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
call esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x70], 2
cmp eax, ebp
je 0x100596d9
test eax, eax
jne 0x100596e2
push 0
push 0
call fcn.100167a0
push 0
push 0
push 0
push 2
push 0
push edi
call esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov byte [esp + 0x70], 3
cmp eax, ebp
je 0x10059704
test eax, eax
jne 0x1005970d
push 0
push 0
call fcn.100167a0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebx
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
sub ecx, edx
sbb eax, ebx
test eax, eax
ja 0x1005975b
jb 0x1005974f
cmp ecx, 0x100000
jae 0x1005975b
mov ebp, ecx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], eax
jmp 0x1005976f
mov dword [esp + 0x48], 0x100000
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x4c], 0
cmp ebx, dword [esp + 0x54]
ja 0x10059a1d
jb 0x10059785
cmp edx, dword [esp + 0x50]
jae 0x10059a1d
cmp dword [esp + 0x4c], 0
ja 0x100598eb
jb 0x1005979b
cmp ebp, 0xffffffff
ja 0x100598eb
push ebp
push edx
mov edx, dword [esp + 0x34]
push ebx
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [esp + 0x24], ebx
mov byte [esp + 0x70], 4
test ebx, ebx
je 0x100595ed
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
push ebp
push eax
push ecx
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
mov dword [esp + 0x20], ebp
mov byte [esp + 0x70], 5
test ebp, ebp
je 0x100595ed
mov eax, dword [esp + 0x48]
mov dword [esp + 0x78], ebp
mov ecx, ebx
mov dword [esp + 0x1c], ebx
mov edx, ebp
cmp eax, 4
jb 0x10059824
mov edi, edi
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x10059901
mov ecx, dword [esp + 0x1c]
sub eax, 4
add edx, 4
add ecx, 4
mov dword [esp + 0x78], edx
mov dword [esp + 0x1c], ecx
cmp eax, 4
jae 0x10059800
test eax, eax
je 0x1005985c
mov dl, byte [edx]
cmp dl, byte [ecx]
jne 0x10059901
cmp eax, 1
jbe 0x1005985c
mov edx, dword [esp + 0x78]
mov dl, byte [edx + 1]
cmp dl, byte [ecx + 1]
jne 0x10059901
cmp eax, 2
jbe 0x1005985c
mov eax, dword [esp + 0x78]
mov dl, byte [eax + 2]
cmp dl, byte [ecx + 2]
jne 0x10059901
mov byte [esp + 0x70], 4
call esi
push 0xd3
push str.c:dvsp4_build_sw_relgpu_drv_r265_r265_36installer2.0incHandles.h
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esp + 0x84], eax
call ebp
push eax
call fcn.10014420
mov eax, dword [esp + 0x84]
add esp, 0xc
push eax
mov dword [esp + 0x24], 0
call edi
mov byte [esp + 0x70], 3
call esi
push 0xd3
push str.c:dvsp4_build_sw_relgpu_drv_r265_r265_36installer2.0incHandles.h
push ebx
mov dword [esp + 0x84], eax
call ebp
push eax
call fcn.10014420
mov ecx, dword [esp + 0x84]
add esp, 0xc
push ecx
mov dword [esp + 0x28], 0
call edi
mov edx, dword [esp + 0x48]
add dword [esp + 0x40], edx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
adc dword [esp + 0x44], eax
mov ebx, dword [esp + 0x44]
jmp 0x10059735
push 0
push 0x28a
push str..FilePath.cpp
push 0xe0e00000
call fcn.10001ed0
mov byte [esp + 0x70], 4
call esi
push 0xd3
push str.c:dvsp4_build_sw_relgpu_drv_r265_r265_36installer2.0incHandles.h
push ebp
mov dword [esp + 0x84], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push eax
call fcn.10014420
mov ecx, dword [esp + 0x84]
add esp, 0xc
push ecx
mov dword [esp + 0x24], 0
call edi
mov byte [esp + 0x70], 3
call esi
push 0xd3
push str.c:dvsp4_build_sw_relgpu_drv_r265_r265_36installer2.0incHandles.h
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push eax
call fcn.10014420
add esp, 0xc
push ebp
mov dword [esp + 0x28], 0
call edi
mov byte [esp + 0x70], 2
call esi
mov edx, dword [esp + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x47
push str.c:dvsp4_build_sw_relgpu_drv_r265_r265_36installer2.0incHandles.h
push edx
mov ebx, eax
call ebp
push eax
call fcn.10014420
add esp, 0xc
push ebx
mov dword [esp + 0x34], 0
call edi
mov byte [esp + 0x70], 1
call esi
push 0x47
mov ebx, eax
mov eax, dword [esp + 0x30]
push str.c:dvsp4_build_sw_relgpu_drv_r265_r265_36installer2.0incHandles.h
push eax
call ebp
push eax
call fcn.10014420
add esp, 0xc
push ebx
mov dword [esp + 0x38], 0
call edi
mov byte [esp + 0x70], 0
call esi
mov ecx, dword [esp + 0x38]
push 0x29
push str.c:dvsp4_build_sw_relgpu_drv_r265_r265_36installer2.0incHandles.h
push ecx
mov ebx, eax
call ebp
push eax
call fcn.10014420
add esp, 0xc
push ebx
mov dword [esp + 0x18], 0xffffffff
call edi
or ebx, 0xffffffff
mov dword [esp + 0x70], ebx
call esi
mov edx, dword [esp + 0x3c]
push 0x29
push str.c:dvsp4_build_sw_relgpu_drv_r265_r265_36installer2.0incHandles.h
push edx
mov esi, eax
call ebp
push eax
call fcn.10014420
add esp, 0xc
push esi
mov dword [esp + 0x1c], ebx
call edi
xor al, al
jmp 0x10059a95
mov byte [esp + 0x70], 2
lea ecx, [esp + 0x30]
call fcn.100588f0
mov byte [esp + 0x70], 1
lea ecx, [esp + 0x34]
call fcn.100588f0
mov byte [esp + 0x70], 0
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x29
mov ebp, eax
mov eax, dword [esp + 0x3c]
push str.c:dvsp4_build_sw_relgpu_drv_r265_r265_36installer2.0incHandles.h
push eax
call ebx
push eax
call fcn.10014420
add esp, 0xc
push ebp
mov dword [esp + 0x18], 0xffffffff
call edi
or ebp, 0xffffffff
mov dword [esp + 0x70], ebp
call esi
mov ecx, dword [esp + 0x3c]
push 0x29
push str.c:dvsp4_build_sw_relgpu_drv_r265_r265_36installer2.0incHandles.h
push ecx
mov esi, eax
call ebx
push eax
call fcn.10014420
add esp, 0xc
push esi
mov dword [esp + 0x1c], ebp
call edi
mov al, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 4