Function at 0x59f1a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x755898]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
push ebx
push 0x8000080
push 3
push ebx
push 3
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp edi, 0xffffffff
jne 0x59f20c
lea eax, [ebx + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x59f246
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x59f246
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov edx, dword [ebp - 0x1c]
push edx
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
jne 0x59f27d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push ebx
push ebx
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x59f2b0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
lea eax, [ebx + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.0059b8f0
push str.75B22630_668E_11CF_A6D9_00AA0062CE6C
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0061ee1e
add esp, 0x10
test eax, eax
je 0x59f2fe
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402570
mov eax, 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebx + 0x18]
push edx
call fcn.00599bd0
add esp, 4
mov dword [ebp - 0x24], eax
mov edi, 0x1e
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], 0
lea esp, [esp]
lea esi, [edi + ebx]
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0059b8f0
push 0x6afcc0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0061ee1e
add esp, 0x10
test eax, eax
jne 0x59f37a
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [esi + 0x28]
push ecx
call fcn.0059e5f0
push 0
mov edx, dword [ebp + 0x18]
push edx
lea eax, [esi + 0x38]
push eax
call fcn.0059e5f0
add esp, 0x18
movzx eax, byte [esi + 0x58]
and eax, 0xfe
mov byte [esi + 0x58], al
movzx ecx, al
or cl, 2
mov byte [esi + 0x58], cl
inc dword [ebp - 0x18]
add esi, 0x10
push esi
call fcn.00599bd0
add esp, 4
add edi, eax
mov dword [ebp - 0x20], edi
cmp edi, dword [ebp + 0xc]
jge 0x59f3e3
mov edx, dword [ebp - 0x24]
cmp dword [ebp - 0x18], edx
jb 0x59f320
lea esi, [edi + ebx]
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0059b8f0
push str.75B22636_668E_11CF_A6D9_00AA0062CE6C
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0061ee1e
add esp, 0x10
test eax, eax
jne 0x59f3e3
mov edi, dword [ebp + 0x18]
mov edx, edi
imul edx, dword [ebp + 0x1c]
add edx, 0x32
push eax
push edx
lea eax, [esi + 0x10]
push eax
call fcn.0059e5f0
push 0
push edi
add esi, 0x28
push esi
call fcn.0059e5f0
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x28]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402570
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret