Function at 0x10016d80
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x1002e76a
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1003efe0]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
call fcn.10014260
cmp eax, ebx
jne 0x100170f3
mov edi, dword [esp + 0x8c]
push ebx
push 0x100326dd
lea ecx, [esp + 0x2c]
mov dword [esi + 0x50], edi
call fcn.10013730
push eax
lea ecx, [esi + 0x84]
mov dword [esp + 0x88], ebx
call fcn.10013ab0
lea ecx, [esp + 0x24]
mov dword [esp + 0x84], 0xffffffff
call fcn.10013620
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10016e39
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10016e39
mov ecx, esi
call fcn.10016d20
neg eax
sbb eax, eax
and eax, 5
add eax, 0xc0001006
jmp 0x100170f3
mov edx, dword [esp + 0x18]
xor eax, eax
xor ecx, ecx
or edx, eax
or ecx, ebp
push edx
push ecx
push edi
lea ecx, [esp + 0x60]
call fcn.100132a0
mov edi, dword [esp + 0x90]
cmp edi, ebx
mov ebp, 1
mov dword [esp + 0x84], ebp
je 0x10016e83
lea ecx, [esp + 0x24]
push edi
push ecx
call fcn.1000ce90
mov edx, dword [eax]
mov dword [esp + 0x24], edx
mov eax, dword [eax + 4]
add esp, 8
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0xa4]
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x9c]
call fcn.10013640
mov cl, byte [esp + 0x94]
cmp edi, ebx
lea edx, [esp + 0x54]
setne al
mov byte [esi + 0x54], cl
lea ecx, [esi + 0x6c]
mov byte [esi + 0xc], 1
mov dword [esi + 0x68], edx
mov byte [esi + 0xd], al
mov byte [esi + 0x57], 0
mov dword [esi + 0x40], ebp
call fcn.10013640
lea ecx, [esi + 0x78]
call fcn.10013640
cmp edi, ebx
je 0x10016ee6
push edi
lea ecx, [esp + 0x4c]
call fcn.100136c0
mov byte [esp + 0x84], 2
mov ebx, ebp
jmp 0x10016f05
push ebx
push 0x100326dd
lea ecx, [esp + 0x44]
call fcn.10013730
mov dword [esp + 0x84], 3
mov ebx, 2
push eax
lea ecx, [esi + 0x90]
mov dword [esp + 0x18], ebx
call fcn.10013ab0
test bl, 2
mov dword [esp + 0x84], 2
je 0x10016f35
and ebx, 0xfffffffd
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], ebx
call fcn.10013620
test bl, 1
mov dword [esp + 0x84], ebp
je 0x10016f4a
lea ecx, [esp + 0x48]
call fcn.10013620
test edi, edi
mov ebp, dword [esi + 0x1c]
mov dword [esi + 0x60], 0xffffffff
mov eax, edi
jne 0x10016f5f
mov eax, 0x10030918
push eax
lea ecx, [esp + 0x34]
call fcn.100136c0
mov ebx, dword [esi + 0x18]
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 4
call fcn.100137c0
mov edx, dword [esi + 0x10]
push eax
mov eax, dword [ebx + 0x40]
push 0x55
push edx
call eax
add esp, 0xc
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
mov dword [esp + 0x60], esi
call fcn.10014f00
mov ebx, eax
test ebx, ebx
je 0x10017021
mov edx, dword [esi + 0x48]
mov eax, dword [esp + 0x9c]
lea ecx, [esi + 0x78]
mov dword [eax], edx
call fcn.100137a0
mov ecx, dword [esp + 0xa0]
mov dword [ecx], eax
cmp byte [esi + 0xd], 0
je 0x10016fd6
cmp dword [esi + 0x50], 0xffffffff
lea eax, [esi + 0x50]
je 0x10016fd6
push eax
mov ecx, esi
call fcn.10014230
test edi, edi
mov dword [esi + 0x68], 0
je 0x10016fee
lea edx, [esp + 0x1c]
push edx
call fcn.1000c480
add esp, 4
mov ecx, esi
call fcn.10016d20
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 1
call fcn.10013620
lea ecx, [esp + 0x54]
mov dword [esp + 0x84], 0xffffffff
call fcn.10013140
mov eax, ebx
jmp 0x100170f3
cmp byte [esi + 0x56], 0
mov dword [esi + 0x1c], ebp
je 0x10017039
mov eax, dword [esp + 0x98]
mov dword [eax], 0
jmp 0x10017055
mov eax, dword [esi + 0x40]
cmp eax, 1
jne 0x1001704c
cmp byte [esi + 0x57], 0
je 0x1001704c
mov eax, 2
mov ecx, dword [esp + 0x98]
mov dword [ecx], eax
mov edx, dword [esi + 0x48]
mov eax, dword [esp + 0x9c]
lea ecx, [esi + 0x78]
mov dword [eax], edx
call fcn.100137a0
test edi, edi
mov ecx, dword [esp + 0xa0]
mov dword [ecx], eax
je 0x10017083
lea edx, [esp + 0x1c]
push edx
call fcn.1000c480
add esp, 4
cmp byte [esi + 0xd], 0
je 0x1001709a
cmp dword [esi + 0x50], 0xffffffff
lea eax, [esi + 0x50]
je 0x1001709a
push eax
mov ecx, esi
call fcn.10014230
mov ecx, esi
mov dword [esi + 0x68], 0
call fcn.10016d20
test eax, eax
mov byte [esp + 0x84], 1
lea ecx, [esp + 0x30]
je 0x100170d8
call fcn.10013620
lea ecx, [esp + 0x54]
mov dword [esp + 0x84], 0xffffffff
call fcn.10013140
mov eax, 0xc000100b
jmp 0x100170f3
call fcn.10013620
lea ecx, [esp + 0x54]
mov dword [esp + 0x84], 0xffffffff
call fcn.10013140
xor eax, eax
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 0x1c