Function at 0x428dc4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1002c
call fcn.00439e70
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
lea edx, [ebp - 0x10018]
push 0x1000
mov dword [ebp - 0x10024], ebx
call fcn.0040f05a
test al, al
je 0x429062
movzx edx, byte [ebp - 0xff19]
lea ecx, [ebp - 0x10018]
or esi, 0xffffffff
inc edx
push esi
shl edx, 8
call fcn.0040ebe2
test eax, eax
jne 0x429062
mov eax, dword [ebp - 0xff08]
mov dword [ebp - 0x10028], eax
test eax, eax
je 0x429062
lea eax, [ebp - 0x1001c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x1001c]
xor ebx, ebx
push 8
or ebx, eax
mov dword [ebp - 0x1001c], ecx
pop edi
cmp bx, di
jae 0x428e61
mov eax, esi
jmp 0x429065
movzx eax, bx
mov esi, ebx
mov dword [ebp - 0x10020], eax
cdq
sub esi, eax
sbb ecx, edx
xor edx, edx
push ecx
mov ecx, dword [ebp - 0x10024]
push esi
call fcn.0040ee40
pop ecx
pop ecx
push dword [ebp - 0x10020]
mov ecx, dword [ebp - 0x10024]
lea edx, [ebp - 0x10018]
call fcn.0040f05a
test al, al
jne 0x428ea4
push 0xfffffffffffffff5
jmp 0x429064
mov eax, dword [ebp - 0x1001c]
lea ecx, [ebp - 0x10018]
mov edx, dword [ebp - 0x10020]
shrd ebx, eax, 0x10
not ebx
shr eax, 0x10
push ebx
call fcn.0040ebe2
mov esi, eax
lea eax, [ebp - 0x10018]
add eax, dword [ebp - 0x10020]
mov dword [ebp - 0x10024], esi
mov dword [ebp - 0x1002c], esi
mov dword [ebp - 0x10020], eax
test esi, esi
jne 0x428ef2
sub eax, 4
mov dword [ebp - 0x10020], eax
xor edx, edx
mov dword [ebp - 0x1001c], 3
mov eax, 0x5265c00
mov ebx, 0xe0
div dword [ebp - 0x10028]
push 0xf
mov edx, eax
mov byte [ebp - 0x14], bl
mov eax, 0x8000
pop ecx
cmp edx, eax
jae 0x428f46
mov eax, edx
mov ecx, edx
shr eax, 3
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0x12]
shr ecx, 0xb
and al, 0x1f
or cl, bl
shl dl, 5
or al, dl
mov byte [ebp - 0x14], cl
push 0x13
mov byte [ebp - 0x12], al
pop eax
jmp 0x429001
push 2
pop ebx
sub edx, eax
jmp 0x428f53
sub edx, eax
add eax, eax
inc ecx
inc ebx
cmp edx, eax
jae 0x428f4d
lea eax, [ebx + ecx]
cmp eax, 0x20
jae 0x428fe4
push 0xfffffffffffffffe
pop ebx
shl ebx, cl
add eax, 3
or ebx, edx
mov dword [ebp - 0x10028], eax
cmp eax, edi
ja 0x428f8c
sub edi, eax
mov ecx, edi
shl bl, cl
mov ecx, 0xe0
and bl, 0x1f
or cl, bl
mov byte [ebp - 0x14], cl
jmp 0x429001
lea edx, [eax - 8]
mov eax, ebx
mov ecx, edx
shr eax, cl
or al, 0xe0
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x13]
mov dword [ebp - 0x1001c], eax
cmp edx, edi
jbe 0x428fc4
mov esi, eax
sub edx, edi
mov eax, ebx
mov ecx, edx
shr eax, cl
mov byte [esi], al
inc esi
cmp edx, edi
ja 0x428fa9
mov dword [ebp - 0x1001c], esi
mov esi, dword [ebp - 0x10024]
mov al, byte [edx + 0x442924]
sub edi, edx
mov ecx, edi
shl bl, cl
mov ecx, dword [ebp - 0x1001c]
and al, byte [ecx]
or bl, al
mov eax, dword [ebp - 0x10028]
mov byte [ecx], bl
jmp 0x429001
push edx
push ecx
push ebx
lea edx, [ebp - 0x1001c]
lea ecx, [ebp - 0x14]
call fcn.00401b9b
mov esi, dword [ebp - 0x1002c]
mov eax, dword [ebp - 0x1001c]
lea edi, [eax + 7]
or ecx, 0xffffffff
shr edi, 3
mov ebx, edi
sub ecx, edi
shl ebx, 3
sub ebx, eax
mov eax, dword [ebp - 0x10020]
add eax, ecx
lea ecx, [ebp - 0x14]
push edi
push eax
push ecx
mov dword [ebp - 0x10020], eax
call fcn.0043a6c4
add esp, 0xc
test eax, eax
je 0x429037
push 0xfffffffffffffffe
jmp 0x429064
test ebx, ebx
je 0x429059
mov eax, dword [ebp - 0x10020]
mov ecx, ebx
movzx edx, byte [edi + eax]
movzx eax, byte [ebp + edi - 0x14]
xor edx, eax
mov eax, 0xff
sar eax, cl
test eax, edx
jne 0x429033
neg esi
sbb esi, esi
jmp 0x428e5a
push 0xfffffffffffffff7
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret