Function at 0x5f80cac8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x5f831f24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x174], eax
mov byte [ebp - 0x139], 1
mov dword [ebp - 0x140], ecx
mov eax, dword [edi]
mov dword [ebp - 0x164], ebx
mov esi, dword [eax + 4]
lea eax, [ebp - 0x139]
push eax
mov ecx, esi
call dword [0x5f833194]
mov ecx, edi
call esi
test eax, eax
js 0x5f80cd95
cmp byte [ebp - 0x139], 0
jne 0x5f80cd40
mov eax, dword [0x5f832c48]
xor ebx, ebx
test eax, eax
je 0x5f80cd0e
push eax
lea ecx, [ebp - 0x198]
call fcn.5f80b09e
cmp byte [ebp - 0x190], bl
je 0x5f80ccfa
cmp dword [0x5f831170], 5
jbe 0x5f80ccfa
push ecx
push ecx
mov edi, 0x5f831170
mov ecx, edi
call fcn.5f80987f
test al, al
je 0x5f80ccfa
mov esi, dword [0x5f832c44]
lea eax, [ebp - 0x170]
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x170], 0x2000000
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0xe8], eax
mov edx, dword [esi + 4]
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], 8
mov dword [ebp - 0xdc], ebx
call fcn.5f809843
mov edx, dword [esi + 8]
lea ecx, [ebp - 0xc8]
call fcn.5f809843
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0xb8]
call fcn.5f809843
mov edx, dword [esi + 0x10]
lea ecx, [ebp - 0xa8]
call fcn.5f809843
movzx eax, byte [esi + 0x14]
mov edx, 0x5f80777c
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x164]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x8c], ebx
push 4
pop ecx
mov dword [ebp - 0x90], ecx
movzx eax, byte [esi + 0x15]
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x144]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x7c], ebx
movzx eax, byte [esi + 0x16]
mov dword [ebp - 0x178], eax
lea eax, [ebp - 0x178]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], ebx
movzx eax, byte [esi + 0x17]
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x5c], ebx
movzx eax, byte [esi + 0x18]
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x158]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ebx
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x160]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
call fcn.5f809750
lea eax, [ebp - 0x108]
mov edx, 0x5f808a4d
push eax
push 0x10
push ebx
push ebx
mov ecx, edi
call fcn.5f809780
cmp byte [ebp - 0x194], bl
je 0x5f80cd0e
push dword [ebp - 0x198]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x5f831160]
cmp eax, 0x5f831160
je 0x5f80cd33
test byte [eax + 0x1c], 2
je 0x5f80cd33
push dword [eax + 0x14]
mov edx, 0x5f8078bc
push dword [eax + 0x10]
push 0xc
pop ecx
call fcn.5f809c00
mov ecx, dword [ebp - 0x174]
mov byte [ecx], bl
jmp 0x5f80d370
mov eax, dword [0x5f831160]
cmp eax, 0x5f831160
je 0x5f80cd68
test byte [eax + 0x1c], 4
je 0x5f80cd68
push dword [ebx + 0x10]
mov edx, 0x5f8078bc
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xd
pop ecx
call fcn.5f80bc0f
mov edi, dword [ebp - 0x140]
xor ebx, ebx
mov dword [ebp - 0x154], ebx
mov edi, dword [edi + 0xc]
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
lea eax, [ebp - 0x154]
push eax
mov ecx, esi
call dword [0x5f833194]
mov ecx, edi
call esi
test eax, eax
jns 0x5f80cd9d
lfence
jmp 0x5f80d372
cmp dword [ebp - 0x154], ebx
jne 0x5f80cdb3
mov ecx, dword [ebp - 0x174]
mov byte [ecx], 1
jmp 0x5f80d370
mov edi, dword [ebp - 0x164]
lea ecx, [ebp - 0x144]
or dword [ebp - 0x144], 0xffffffff
sub esp, 0xc
mov edx, dword [edi + 0xc]
push 3
push 7
push SysReAllocStringLen
call fcn.5f81427d
mov esi, dword [ebp - 0x144]
test eax, eax
jns 0x5f80ce24
mov ecx, dword [0x5f831160]
cmp ecx, 0x5f831160
je 0x5f80d359
test byte [ecx + 0x1c], 2
je 0x5f80d359
push eax
lfence
push dword [edi + 0xc]
mov eax, dword [0x5f831160]
mov edx, 0x5f8078bc
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xe
pop ecx
call fcn.5f80bc6b
jmp 0x5f80d359
lea eax, [ebp - 0x170]
mov dword [ebp - 0x150], ebx
push eax
push esi
mov dword [ebp - 0x14c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x5f80ce8b
call fcn.5f814d33
mov edx, eax
mov dword [ebp - 0x140], edx
mov ecx, dword [0x5f831160]
cmp ecx, 0x5f831160
je 0x5f80ce7d
test byte [ecx + 0x1c], 1
je 0x5f80ce7d
push edx
push dword [ecx + 0x14]
mov edx, 0x5f80876c
push dword [ecx + 0x10]
push 0x11
pop ecx
call fcn.5f80a336
mov edx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x150]
jmp 0x5f80cea5
mov ecx, dword [ebp - 0x170]
mov edx, ebx
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x14c], eax
test edx, edx
js 0x5f80d359
shrd ecx, eax, 0xa
push 0x2e
push dword [edi + 0xc]
shr eax, 0xa
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x14c], eax
call fcn.5f82447e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x14c], ebx
jb 0x5f80d17a
ja 0x5f80cef2
cmp dword [ebp - 0x150], ecx
jbe 0x5f80d17a
mov eax, dword [0x5f832c48]
test eax, eax
je 0x5f80d141
push eax
lea ecx, [ebp - 0x1a4]
call fcn.5f80b09e
cmp byte [ebp - 0x19c], bl
je 0x5f80d12d
cmp dword [0x5f831170], 5
jbe 0x5f80d12d
push ecx
push ecx
mov ecx, 0x5f831170
call fcn.5f80987f
test al, al
je 0x5f80d12d
mov edi, dword [0x5f832c44]
lea eax, [ebp - 0x198]
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x198], 0x2000000
mov dword [ebp - 0x194], ebx
mov dword [ebp - 0x118], eax
mov edx, dword [edi + 4]
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], 8
mov dword [ebp - 0x10c], ebx
call fcn.5f809843
mov edx, dword [edi + 8]
lea ecx, [ebp - 0xf8]
call fcn.5f809843
mov edx, dword [edi + 0xc]
lea ecx, [ebp - 0xe8]
call fcn.5f809843
mov edx, dword [edi + 0x10]
lea ecx, [ebp - 0xd8]
call fcn.5f809843
movzx eax, byte [edi + 0x14]
mov edx, 0x5f807790
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xbc], ebx
push 4
pop ecx
mov dword [ebp - 0xc0], ecx
movzx eax, byte [edi + 0x15]
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x160]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xac], ebx
movzx eax, byte [edi + 0x16]
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0x9c], ebx
movzx eax, byte [edi + 0x17]
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x158]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x8c], ebx
movzx eax, byte [edi + 0x18]
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x7c], ebx
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x178], eax
lea eax, [ebp - 0x178]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], ebx
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x180]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x184]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
call fcn.5f809750
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x154]
push 4
pop ecx
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 8
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
call fcn.5f809843
lea eax, [ebp - 0x138]
mov edx, 0x5f808fe5
push eax
push 0x13
push ebx
push ebx
mov ecx, 0x5f831170
call fcn.5f809780
mov edi, dword [ebp - 0x164]
cmp byte [ebp - 0x1a0], bl
je 0x5f80d141
push dword [ebp - 0x1a4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x5f831160]
cmp eax, 0x5f831160
je 0x5f80d173
test byte [eax + 0x1c], 2
je 0x5f80d173
push dword [ebp - 0x154]
push dword [ebp - 0x14c]
push dword [ebp - 0x150]
push dword [edi + 0xc]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5f80becc
mov al, bl
jmp 0x5f80d35c
mov eax, dword [0x5f832c48]
test eax, eax
je 0x5f80d359
push eax
lea ecx, [ebp - 0x1a4]
call fcn.5f80b09e
cmp byte [ebp - 0x19c], bl
je 0x5f80d345
cmp dword [0x5f831170], 5
jbe 0x5f80d345
push ecx
push ecx
mov ecx, 0x5f831170
call fcn.5f80987f
test al, al
je 0x5f80d345
mov edi, dword [0x5f832c44]
lea eax, [ebp - 0x198]
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x198], 0x2000000
mov dword [ebp - 0x194], ebx
mov dword [ebp - 0xe8], eax
mov edx, dword [edi + 4]
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], 8
mov dword [ebp - 0xdc], ebx
call fcn.5f809843
mov edx, dword [edi + 8]
lea ecx, [ebp - 0xc8]
call fcn.5f809843
mov edx, dword [edi + 0xc]
lea ecx, [ebp - 0xb8]
call fcn.5f809843
mov edx, dword [edi + 0x10]
lea ecx, [ebp - 0xa8]
call fcn.5f809843
movzx eax, byte [edi + 0x14]
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x8c], ebx
push 4
pop ecx
mov dword [ebp - 0x90], ecx
movzx eax, byte [edi + 0x15]
mov dword [ebp - 0x184], eax
lea eax, [ebp - 0x184]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x7c], ebx
movzx eax, byte [edi + 0x16]
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x180]
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], ebx
movzx eax, byte [edi + 0x17]
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x5c], ebx
movzx eax, byte [edi + 0x18]
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x160]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ebx
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x158]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
call fcn.5f809843
lea eax, [ebp - 0x150]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 8
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0x108]
mov edx, 0x5f808f07
push eax
push 0x10
push ebx
push ebx
mov ecx, 0x5f831170
call fcn.5f809780
cmp byte [ebp - 0x1a0], bl
je 0x5f80d359
push dword [ebp - 0x1a4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x174]
mov byte [ecx], al
cmp esi, 0xffffffff
je 0x5f80d370
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5f82318a
leave
ret 8