Function at 0x4b2620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d394
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x58a088]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push ecx
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0xd0], edi
call fcn.004b3bb0
mov eax, dword [ebx]
push 0x80
push 3
push ecx
mov dword [ebx + 4], eax
mov ecx, esi
push 0
mov byte [edi], 0
call fcn.00403390
mov edx, 0x80000000
mov ecx, eax
call fcn.004922c0
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x4b27fa
test esi, esi
je 0x4b27fa
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0xdc]
movlpd qword [ebp - 0xe4], xmm0
push eax
lea eax, [ebp - 0xe4]
movlpd qword [ebp - 0xdc], xmm0
push eax
push dword [ebp - 0x24]
movlpd qword [ebp - 0xec], xmm0
call fcn.004b2f50
test al, al
je 0x4b279b
mov edi, dword [ebp - 0xe4]
mov ecx, edi
mov eax, dword [ebp - 0xe0]
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x4b2795
jb 0x4b273d
cmp ecx, 0x4ffffe
ja 0x4b2795
lea eax, [ebp - 0xbd]
mov byte [ebp - 0xbd], 0
push eax
push edi
lea ecx, [ebp - 0x20]
call fcn.00440270
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push edi
push dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x24]
xor ecx, ecx
cmp ecx, dword [ebp - 0xe0]
ja 0x4b2795
jb 0x4b277f
cmp eax, edi
jae 0x4b2795
mov byte [ebp - 0xbd], cl
lea ecx, [ebp - 0xbd]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00440270
mov edi, dword [ebp - 0xd0]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
jne 0x4b281a
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4b27fa
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4b27db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b2d9a
push edx
push ecx
call fcn.004e2035
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e1ff4
mov esp, ebp
pop ebp
ret 0xc
xorps xmm0, xmm0
mov dword [ebp - 0xc4], 0
movq qword [ebp - 0xcc], xmm0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbc]
call fcn.004d80d0
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 0x20]
sub ecx, eax
push edx
push ecx
push eax
lea ecx, [ebp - 0xbc]
call fcn.00438f80
test al, al
jne 0x4b28e3
mov byte [edi], 1
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0xcc]
test ecx, ecx
je 0x4b27aa
mov edx, dword [ebp - 0xc4]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4b28b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b2d9f
push edx
push ecx
call fcn.004e2035
add esp, 8
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
jmp 0x4b27aa
mov eax, dword [ebp - 0xc8]
xor edx, edx
mov edi, dword [ebp - 0xcc]
mov ecx, 0x3e8
sub eax, edi
div ecx
mov esi, eax
mov dword [ebp - 0xe8], esi
test edx, edx
je 0x4b2948
mov eax, dword [ebp - 0xd0]
mov byte [eax], 1
mov byte [ebp - 4], 0
test edi, edi
je 0x4b27aa
mov ecx, dword [ebp - 0xc4]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x4b2941
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b2d9a
push ecx
push edi
jmp 0x4b28b8
test esi, esi
jne 0x4b29fd
mov byte [ebp - 4], 0
test edi, edi
je 0x4b29a6
mov ecx, dword [ebp - 0xc4]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x4b297e
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b2d9a
push ecx
push edi
call fcn.004e2035
add esp, 8
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4b29f6
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4b29d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b2d9a
push edx
push ecx
call fcn.004e2035
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov al, 1
jmp 0x4b27fc
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x30]
push eax
push esi
mov ecx, eax
call fcn.004b35e0
imul eax, esi, 0x3e8
push eax
push edi
push dword [ebp - 0x30]
call fcn.004e3dc0
mov ecx, dword [ebp - 0x2c]
mov eax, 0x10624dd3
mov esi, dword [ebp - 0x30]
add esp, 0xc
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4b2abf
xor eax, eax
xor ecx, ecx
cmp dword [eax + esi], 0x23ab45db
jne 0x4b2b1a
xor edx, edx
inc ecx
mov word [eax + esi + 0x282], dx
mov word [eax + esi + 0x382], dx
mov word [eax + esi + 0x3ca], dx
add eax, 0x3e8
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0xd8], eax
mov eax, 0x10624dd3
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x2c]
sub ecx, esi
imul ecx
mov ecx, dword [ebp - 0x24]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
mov eax, dword [ebp - 0xd8]
jb 0x4b2a63
mov ecx, dword [ebx + 8]
mov eax, 0x4ec4ec4f
sub ecx, dword [ebx]
mov esi, dword [ebp - 0xe8]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jbe 0x4b2b98
mov dword [ebp - 0xe8], 0x2762762
call fcn.004028b0
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00402d60
add esp, 8
mov eax, dword [eax]
cmp esi, eax
ja 0x4b2da4
jmp 0x4b2b90
mov eax, dword [ebp - 0xd0]
mov byte [eax], 1
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x4b290f
mov ecx, dword [ebp - 0x28]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x4b2b6c
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b2d9a
push ecx
push esi
call fcn.004e2035
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
jmp 0x4b290f
push esi
mov ecx, ebx
call fcn.004b33b0
lea ecx, [ebp - 0x9c]
call fcn.004b0a30
mov byte [ebp - 4], 3
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub ecx, esi
imul ecx
mov dword [ebp - 0x24], esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4b2cfe
xor eax, eax
xor edi, edi
mov dword [ebp - 0xd8], eax
add eax, 4
add esi, eax
push esi
call fcn.00402d30
add esp, 4
lea ecx, [ebp - 0x9c]
push eax
push esi
call fcn.00402b20
mov eax, dword [ebp - 0xd8]
mov esi, dword [ebp - 0x24]
add eax, 0x284
add esi, eax
push esi
call fcn.00402d30
add esp, 4
lea ecx, [ebp - 0x84]
push eax
push esi
call fcn.00402b20
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xd8]
lea esi, [ecx + 0x384]
mov eax, dword [edx + ecx + 0x3cc]
add esi, edx
mov dword [ebp - 0x54], eax
mov eax, dword [edx + ecx + 0x3d0]
mov dword [ebp - 0x50], eax
mov eax, dword [edx + ecx + 0x3d4]
mov dword [ebp - 0x4c], eax
mov eax, dword [edx + ecx + 0x3d8]
mov dword [ebp - 0x48], eax
mov eax, dword [edx + ecx + 0x3dc]
mov dword [ebp - 0x44], eax
mov eax, dword [edx + ecx + 0x3e0]
push esi
mov dword [ebp - 0x40], eax
call fcn.00402d30
add esp, 4
lea ecx, [ebp - 0x6c]
push eax
push esi
call fcn.00402b20
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0xd8]
mov eax, dword [esi + ecx + 0x3e4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 4]
mov byte [ebp - 0x38], 0
cmp dword [ebx + 8], eax
je 0x4b2cb2
push eax
push 0x68
call fcn.004028a0
add esp, 8
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, eax
call fcn.004b13c0
add dword [ebx + 4], 0x68
jmp 0x4b2cc1
lea ecx, [ebp - 0x9c]
push ecx
push eax
mov ecx, ebx
call fcn.004b39b0
mov ecx, dword [ebp - 0x2c]
add esi, 0x3e8
mov dword [ebp - 0xd8], esi
mov eax, 0x10624dd3
mov esi, dword [ebp - 0x30]
inc edi
sub ecx, esi
mov dword [ebp - 0x24], esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
mov eax, dword [ebp - 0xd8]
jb 0x4b2bd3
mov edi, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xd0]
mov byte [eax], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
call fcn.00402a30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
call fcn.00402a30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x9c]
call fcn.00402a30
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x4b2950
mov ecx, dword [ebp - 0x28]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x4b2d76
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b2d9a
push ecx
push esi
call fcn.004e2035
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
jmp 0x4b2950
call fcn.004ed129
call fcn.004ed129
call fcn.0040b6d0
int3