Function at 0x409d77
Capabilities:
Get file size

Disassembly:
mov eax, 0x421ee0
call fcn.0041410c
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 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
or ebp, 0xffffffff
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
cmp dword [0x42f674], ebx
je 0x409e0d
mov edx, dword [esp + 0x14c]
test edx, edx
je 0x409e0d
mov ecx, dword [edx + 0x3c]
mov eax, dword [ecx + edx + 0x9c]
add eax, dword [ecx + edx + 0x98]
cmp eax, dword [esp + 0x150]
jne 0x40a0fa
push dword [esp + 0x150]
push edx
jmp 0x40a0f0
push 0x105
lea eax, [esp + 0x31]
push ebx
push eax
mov byte [esp + 0x38], bl
call fcn.00414e20
add esp, 0xc
cmp dword [esp + 0x148], 0
jne 0x409f2a
mov ecx, dword [0x430e24]
test ecx, ecx
je 0x409ea9
lea eax, [ecx + 0x1dc]
push eax
push 1
call fcn.0040e6e9
mov ecx, dword [0x430e24]
cmp dword [eax], ebx
je 0x409e6d
lea eax, [ecx + 0x1dc]
push eax
push 1
call fcn.0040e6e9
push ebx
call dword [eax]
mov ecx, dword [0x430e24]
mov ebx, eax
test ecx, ecx
je 0x409ea9
lea eax, [ecx + 0x168]
push eax
push 1
call fcn.0040e6e9
cmp dword [eax], 0
je 0x409ea9
mov ecx, dword [0x430e24]
lea eax, [ecx + 0x168]
push eax
push 1
call fcn.0040e6e9
push 0x105
lea ecx, [esp + 0x30]
push ecx
push ebx
call dword [eax]
xor ebx, ebx
jmp 0x409ead
xor ebx, ebx
mov eax, ebx
test eax, eax
je 0x40a0fa
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00411ad8
pop ecx
pop ecx
mov byte [esp + 0x13c], 2
push eax
mov ecx, edi
call fcn.0040fd82
mov byte [esp + 0x13c], 1
lea ecx, [esp + 0x14]
call fcn.004016a6
mov eax, dword [0x42e174]
shl eax, 0x17
or eax, 0x37800001
inc eax
mov ecx, 0x2d6
cmove eax, ecx
mov ecx, dword [0x42e170]
mov dword [0x42e174], eax
mov eax, ecx
not eax
and eax, 0x177
neg eax
sbb eax, eax
mov edx, 0x80000000
and eax, edx
add eax, edx
shr ecx, 1
or ecx, eax
mov dword [0x42e170], ecx
jmp 0x409f5e
push dword [esp + 0x148]
lea eax, [esp + 0x18]
push eax
call fcn.00411ad8
pop ecx
pop ecx
mov byte [esp + 0x13c], 3
push eax
mov ecx, edi
call fcn.0040fd82
mov byte [esp + 0x13c], 1
lea ecx, [esp + 0x14]
call fcn.004016a6
mov ecx, dword [0x430e24]
test ecx, ecx
je 0x409fab
lea eax, [ecx + 0x470]
push eax
push 1
call fcn.0040e6e9
cmp dword [eax], ebx
je 0x409fab
cmp dword [edi + 0x14], 0x10
jb 0x409f82
mov edi, dword [edi]
mov ecx, dword [0x430e24]
lea eax, [ecx + 0x470]
push eax
push 1
call fcn.0040e6e9
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edi
call dword [eax]
jmp 0x409fad
mov eax, ebx
mov dword [esi + 0x34], eax
cmp eax, ebp
je 0x40a0e4
mov ecx, dword [0x430e24]
test ecx, ecx
je 0x409ff7
lea eax, [ecx + 0x2f4]
push eax
push 1
call fcn.0040e6e9
cmp dword [eax], ebx
je 0x409ff7
mov ecx, dword [0x430e24]
lea eax, [ecx + 0x2f4]
push eax
push 1
call fcn.0040e6e9
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 0x34]
call dword [eax]
mov edi, eax
jmp 0x409ff9
mov edi, ebx
mov edx, dword [0x42e174]
mov ecx, dword [0x42e170]
inc edx
mov dword [0x42e174], edx
mov eax, 0x21c
cmove edx, eax
mov eax, ecx
not eax
and eax, 0x177
neg eax
sbb eax, eax
and eax, 0x80000000
add eax, 0x80000000
shr ecx, 1
or ecx, eax
inc edx
mov eax, 0x1ca
cmove edx, eax
mov eax, ecx
not eax
and eax, 0x177
neg eax
sbb eax, eax
and eax, 0x80000000
add eax, 0x80000000
shr ecx, 1
or ecx, eax
mov eax, ecx
not eax
and eax, 0x177
neg eax
sbb eax, eax
and eax, 0x80000000
add eax, 0x80000000
shr ecx, 1
or edx, 0x2ff
or ecx, eax
inc edx
mov eax, 0x39e
cmove edx, eax
or edx, 0x391
mov dword [esi + 0x38], edi
mov dword [0x42e170], ecx
mov dword [0x42e174], edx
cmp edi, ebp
je 0x40a0e4
mov ecx, dword [0x430e24]
test ecx, ecx
je 0x40a0d2
lea eax, [ecx + 0x80]
push eax
push 1
call fcn.0040e6e9
cmp dword [eax], ebx
je 0x40a0d2
mov ecx, dword [0x430e24]
lea eax, [ecx + 0x80]
push eax
push 1
call fcn.0040e6e9
push ebx
push ebx
push ebx
push 4
push dword [esi + 0x38]
call dword [eax]
jmp 0x40a0d4
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
cmp dword [esi + 0x2c], 0
je 0x40a0fa
push dword [esi + 0x28]
push dword [esi + 0x2c]
mov ecx, esi
call fcn.0040a9ef
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 0xc