Function at 0x4098ee
Capabilities:
Get file size

Disassembly:
mov eax, 0x42221d
call fcn.00414d1c
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004098c5
xor ebx, ebx
mov dword [esp + 0x13c], ebx
lea edi, [esi + 0x10]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov byte [esp + 0x13c], 1
push 0x105
lea eax, [esp + 0x31]
or ebp, 0xffffffff
push ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov word [esi + 0x30], bx
mov dword [esi + 0x34], ebp
mov dword [esi + 0x38], ebp
mov byte [esp + 0x38], bl
call fcn.00414400
add esp, 0xc
cmp dword [esp + 0x148], ebx
jne 0x4099fa
mov ecx, dword [0x43069c]
lea eax, [ecx + 0x380]
push eax
push 1
call fcn.004049a8
cmp dword [eax], ebx
je 0x409995
mov ecx, dword [0x43069c]
lea eax, [ecx + 0x380]
push eax
push 1
call fcn.004049a8
push ebx
call dword [eax]
mov ebx, eax
mov ecx, dword [0x43069c]
lea eax, [ecx + 0x460]
push eax
push 1
call fcn.004049a8
cmp dword [eax], 0
je 0x4099d3
mov ecx, dword [0x43069c]
lea eax, [ecx + 0x460]
push eax
push 1
call fcn.004049a8
push 0x105
lea ecx, [esp + 0x30]
push ecx
push ebx
call dword [eax]
xor ebx, ebx
jmp 0x4099d7
xor ebx, ebx
mov eax, ebx
test eax, eax
je 0x409b65
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00411e64
pop ecx
pop ecx
mov byte [esp + 0x13c], 2
jmp 0x409a15
push dword [esp + 0x148]
lea eax, [esp + 0x18]
push eax
call fcn.00411e64
pop ecx
pop ecx
mov byte [esp + 0x13c], 3
push eax
mov ecx, edi
call fcn.00409c9a
mov byte [esp + 0x13c], 1
lea ecx, [esp + 0x14]
call fcn.0040150a
mov ecx, dword [0x43069c]
lea eax, [ecx + 0x60]
push eax
push 1
call fcn.004049a8
cmp dword [eax], ebx
je 0x409a71
cmp dword [edi + 0x14], 0x10
jb 0x409a4b
mov edi, dword [edi]
mov ecx, dword [0x43069c]
lea eax, [ecx + 0x60]
push eax
push 1
call fcn.004049a8
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edi
call dword [eax]
jmp 0x409a73
mov eax, ebx
mov dword [esi + 0x34], eax
cmp eax, ebp
je 0x409b0a
mov ecx, dword [0x43069c]
lea eax, [ecx + 0x334]
push eax
push 1
call fcn.004049a8
cmp dword [eax], ebx
je 0x409ab7
mov ecx, dword [0x43069c]
lea eax, [ecx + 0x334]
push eax
push 1
call fcn.004049a8
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 0x34]
call dword [eax]
jmp 0x409ab9
mov eax, ebx
mov dword [esi + 0x38], eax
cmp eax, ebp
je 0x409b0a
mov ecx, dword [0x43069c]
lea eax, [ecx + 0x21c]
push eax
push 1
call fcn.004049a8
cmp dword [eax], ebx
je 0x409af8
mov ecx, dword [0x43069c]
lea eax, [ecx + 0x21c]
push eax
push 1
call fcn.004049a8
push ebx
push ebx
push ebx
push 4
push dword [esi + 0x38]
call dword [eax]
jmp 0x409afa
mov eax, ebx
push ebx
push dword [esi + 0x34]
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x28], eax
mov edx, dword [esi + 0x2c]
test edx, edx
je 0x409b65
mov ecx, dword [0x42f1a0]
mov eax, ecx
not eax
and eax, 0x2b2
neg eax
sbb eax, eax
mov ebx, 0x80000000
and eax, ebx
add eax, ebx
shr ecx, 1
or ecx, eax
mov dword [0x42f1a0], ecx
mov ecx, dword [edx + 0x3c]
mov dword [0x42f1a4], 0x4000801
mov eax, dword [ecx + edx + 0x9c]
add eax, dword [ecx + edx + 0x98]
cmp eax, dword [esi + 0x28]
jne 0x409b65
push dword [esi + 0x28]
mov ecx, esi
push edx
call fcn.0040a28c
mov byte [esi + 0x30], al
mov dword [esp + 0x13c], ebp
mov ecx, dword [esp + 0x134]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 4