Function at 0x5d5d40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61f94c
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x6aab00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1f8], ecx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1f4], esi
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1fc], eax
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x1f0], edi
mov byte [ebp - 0x1ea], 0
mov byte [ebp - 0x1eb], 0
mov byte [ebp - 0x1ec], 0
mov dword [ebp - 0x38], 0xffffffff
mov ecx, 0xf
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x5d5e15
mov ebx, dword [ebp + 0x10]
cmp ebx, 8
jae 0x5d5faf
mov dword [ebp - 0x200], 0
mov dword [ebp - 0x1fc], 0x12
push 0
lea ecx, [ebp - 0x200]
push ecx
lea ecx, [ebp - 0xf8]
call fcn.005ad120
push 0x695564
lea edx, [ebp - 0xf8]
push edx
call fcn.00551b4a
mov eax, dword [ebp + 0x14]
cmp eax, 0xc0000000
jne 0x5d5f08
mov esi, dword [esi]
mov dword [ebp - 0x64], ecx
xor eax, eax
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x78], al
mov byte [ebp - 4], 2
mov dword [ebp - 0x1f4], eax
lea eax, [ebp - 0x1f4]
push eax
push 0xc0000000
push esi
push 1
lea ecx, [ebp - 0x80]
call fcn.005ad5b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x80]
call fcn.005d55f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x80]
call fcn.005ac530
xor eax, eax
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x208], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebx, dword [sym.imp.KERNEL32.dll_SwitchToThread]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ecx]
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call esi
test eax, eax
je 0x5d6260
call ebx
test eax, eax
jne 0x5d5eaf
push 1
call edi
mov eax, dword [ebp - 0x20c]
mov edx, eax
mov ecx, dword [ebp - 0x208]
or edx, ecx
je 0x5d5e90
xor edi, edi
cmp eax, 1
jne 0x5d6291
cmp ecx, edi
jne 0x5d6291
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], 0x13
push edi
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x158]
call fcn.005ad120
push 0x695564
lea edx, [ebp - 0x158]
push edx
call fcn.00551b4a
cmp eax, 0x80000000
jne 0x5d5f60
mov esi, dword [esi]
mov dword [ebp - 0x40], ecx
xor eax, eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x54], al
mov byte [ebp - 4], 4
mov dword [ebp - 0x1f0], eax
lea edx, [ebp - 0x1f0]
push edx
push SysReAllocStringLen
push esi
push 1
lea ecx, [ebp - 0x5c]
call fcn.005ad5b0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x5c]
call fcn.005d55f0
mov byte [ebp - 0x1eb], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
jmp 0x5d5e68
cmp eax, 0xc0000001
jne 0x5d5e6d
push SysReAllocStringLen
mov ecx, dword [esi]
push ecx
movzx edx, byte [0x6b8fbc]
push edx
lea ecx, [ebp - 0xa4]
call fcn.005adc40
mov byte [ebp - 4], 6
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0xa4]
call fcn.005d55f0
mov byte [ebp - 0x1ec], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
jmp 0x5d5e68
test eax, eax
jne 0x5d5fce
mov ecx, dword [ebp - 0x1f0]
push ecx
push edi
push ebx
push esi
lea edx, [ebp - 0x38]
push edx
call fcn.005d5bc0
add esp, 0x14
jmp 0x5d60fb
cmp eax, 2
jne 0x5d5e6d
mov byte [ebp - 0x1e9], 0
cmp byte [ebp - 0x1e9], 0
jne 0x5d60ee
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1f0]
push eax
push edi
push ebx
push esi
lea ecx, [ebp - 0x38]
push ecx
call fcn.005d5bc0
add esp, 0x14
mov byte [ebp - 0x1ea], 1
mov byte [ebp - 0x1e9], 1
mov dword [ebp - 4], 1
jmp 0x5d60d3
push 0
push 0
call fcn.00551b4a
mov byte [ebp - 4], bl
push 0xc0000000
mov eax, dword [ebp - 0x1f4]
mov ecx, dword [eax]
push ecx
movzx edx, byte [0x6b8fbc]
push edx
lea ecx, [ebp - 0xc8]
call fcn.005adc40
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x38]
call fcn.005d55f0
mov byte [ebp - 0x1ea], 0
mov byte [ebp - 0x1e9], 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xc8]
call fcn.005ac530
mov dword [ebp - 4], 8
mov dword [ebp - 4], 8
mov eax, 0x5d60c4
ret
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x5d5fde
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x5d5fde
cmp byte [ebp - 0x1ea], 0
je 0x5d5e6d
mov byte [ebp - 4], 0xc
xor edi, edi
push edi
push ebx
lea ecx, [ebp - 0x38]
call fcn.005ad880
mov edx, dword [ebp - 0x1fc]
push edx
push edi
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x274]
call fcn.005ad970
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x204], edi
mov eax, dword [ebp - 0x274]
mov esi, eax
mov dword [ebp - 0x204], esi
mov ecx, 1
mov edx, eax
xor eax, eax
lock cmpxchg dword [edx], ecx
cmp eax, edi
jne 0x5d61c2
mov byte [ebp - 4], 0xe
push 1
add ebx, 0xfffffff8
push ebx
mov eax, dword [ebp - 0x274]
add eax, 8
push eax
lea ecx, [ebp + 0x20]
call fcn.005d50b0
lea ecx, [ebp - 0x274]
push ecx
mov ecx, dword [ebp - 0x1f8]
add ecx, 0x28
call fcn.005d4c10
mov dword [ebp - 4], 0xd
mov edx, 2
xchg dword [esi], edx
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x274]
call fcn.005ac3a0
mov dword [ebp - 4], 1
jmp 0x5d63a2
cmp eax, 1
je 0x5d6200
cmp eax, 2
je 0x5d6200
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], 0x13
push edi
lea edx, [ebp - 0x22c]
push edx
lea ecx, [ebp - 0x128]
call fcn.005ad120
push 0x695564
lea eax, [ebp - 0x128]
push eax
call fcn.00551b4a
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], 9
push edi
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x188]
call fcn.005ad120
push 0x695564
lea edx, [ebp - 0x188]
push edx
call fcn.00551b4a
mov dword [ebp - 0x10], esp
mov byte [ebp - 4], 0x11
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.005ad880
mov dword [ebp - 4], 0x10
jmp 0x5d6032
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
lea ecx, [ebp - 0x27c]
call fcn.005ac1d0
push eax
lea ecx, [ebp - 0x1e8]
call fcn.005ad120
push 0x695564
lea eax, [ebp - 0x1e8]
push eax
call fcn.00551b4a
cmp byte [ebp - 0x1eb], 0
je 0x5d62a1
mov eax, SysReAllocStringLen
jmp 0x5d62b1
xor eax, eax
cmp byte [ebp - 0x1ec], al
setne al
add eax, 0xc0000000
mov ecx, dword [ebp - 0x1fc]
push ecx
push edi
push edi
push edi
push eax
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x24c]
call fcn.005ad970
mov ebx, 0x13
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x24c]
mov esi, eax
mov eax, dword [eax]
lea ecx, [ecx]
cmp eax, 1
je 0x5d62e9
cmp eax, edi
jne 0x5d62ff
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x5d62fb
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi]
jmp 0x5d62e0
push edi
cmp eax, 2
je 0x5d6334
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], ebx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.005ad120
push 0x695564
lea ecx, [ebp - 0x1b8]
push ecx
call fcn.00551b4a
mov edx, dword [ebp - 0x248]
add edx, 0xfffffff8
push edx
mov eax, dword [ebp - 0x24c]
add eax, 8
push eax
lea ecx, [ebp + 0x20]
call fcn.005d50b0
lea ecx, [ebp - 0x24c]
push ecx
mov ecx, dword [ebp - 0x1f8]
add ecx, 0x28
call fcn.005d4c10
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24c]
cmp eax, edi
je 0x5d6386
sub eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x24c], edi
mov eax, dword [ebp - 0x230]
cmp eax, 0xffffffff
je 0x5d63a2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x230], 0xffffffff
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x1f8]
call fcn.005d5910
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.005ac530
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054cec4
mov esp, ebp
pop ebp
ret 0x20