Function at 0x4212e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4e0150]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x50], eax
je 0x4217ca
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp - 0x58]
push edi
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], edx
nop
mov eax, dword [ecx + 0x10]
xorps xmm0, xmm0
mov ecx, dword [ecx + 0x14]
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
cmp esi, ecx
jb 0x421571
ja 0x421346
cmp edx, eax
jb 0x421571
mov eax, dword [ebp - 0x60]
cmp esi, dword [eax + 0x1c]
ja 0x421571
jb 0x42135d
cmp edx, dword [eax + 0x18]
ja 0x421571
movzx esi, word [eax + 0x20]
add esi, eax
mov dword [ebp - 0x2c], esi
mov dl, byte [esi]
mov byte [ebp - 0x2d], dl
test dl, dl
je 0x421571
mov ecx, dword [ebp - 0x3c]
mov al, dl
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 0x21], al
mov dword [ebp - 0x28], ecx
mov bl, al
mov bh, al
shr bl, 4
and bh, 0xf
test bl, bl
jne 0x421396
xor eax, eax
jmp 0x4213a2
movzx eax, bh
movzx ecx, bl
add ecx, eax
movsx eax, byte [ecx + esi]
cdq
movzx ecx, bl
mov esi, eax
movzx eax, bh
dec ecx
add ecx, eax
mov dword [ebp - 0x54], eax
mov edi, edx
cmp ecx, eax
jle 0x4213dd
mov ebx, dword [ebp - 0x2c]
nop word [eax + eax]
movzx eax, byte [ecx + ebx]
shld edi, esi, 8
cdq
shl esi, 8
add eax, esi
mov esi, eax
adc edi, edx
dec ecx
cmp ecx, dword [ebp - 0x54]
jg 0x4213c0
mov al, byte [ebp - 0x2d]
jmp 0x4213e0
mov al, byte [ebp - 0x21]
add dword [ebp - 0x28], esi
xorps xmm0, xmm0
movzx edx, al
adc dword [ebp - 0x20], edi
mov eax, edx
movlpd qword [ebp - 0x5c], xmm0
and eax, 0xf
mov ebx, dword [ebp - 0x58]
mov ecx, eax
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x3c], eax
jbe 0x421428
mov esi, dword [ebp - 0x2c]
nop dword [eax]
movzx eax, byte [ecx + esi]
shld ebx, edi, 8
cdq
shl edi, 8
add edi, eax
adc ebx, edx
sub ecx, 1
jne 0x421410
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
add eax, edi
mov esi, dword [ebp - 0x4c]
adc ecx, ebx
cmp dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x2c]
ja 0x42145e
jb 0x42144a
mov esi, dword [ebp - 0x48]
cmp dword [ebp - 0x38], esi
mov esi, dword [ebp - 0x2c]
ja 0x42145e
cmp dword [ebp - 0x4c], ecx
jb 0x42151e
ja 0x42145e
cmp dword [ebp - 0x48], eax
jb 0x42151e
shr edx, 4
inc esi
add edx, dword [ebp - 0x3c]
add esi, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], esi
mov dl, byte [esi]
mov byte [ebp - 0x2d], dl
mov al, dl
mov byte [ebp - 0x21], al
test dl, dl
jne 0x421384
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x44]
mov esi, dword [edx + 0x30]
test esi, esi
je 0x4214c1
cmp eax, dword [edx + 0x24]
jb 0x4214c1
ja 0x42149e
cmp ecx, dword [edx + 0x20]
jb 0x4214c1
mov eax, dword [edx + 0x28]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 0x2c]
adc eax, dword [edx + 0x24]
cmp dword [ebp - 0x20], eax
jb 0x421669
ja 0x4214c1
cmp ecx, dword [ebp - 0x3c]
jb 0x421669
cmp byte [ebp + 0x1c], 0
je 0x421669
mov eax, dword [ebp - 0x20]
cmp eax, dword [edx + 0x24]
jb 0x421669
ja 0x4214e2
cmp ecx, dword [edx + 0x20]
jb 0x421669
test esi, esi
je 0x4214f9
push esi
call fcn.0043d721
mov edx, dword [ebp - 0x44]
add esp, 4
mov dword [edx + 0x30], 0
mov esi, dword [edx + 0x38]
mov eax, esi
mov ecx, dword [edx + 0x3c]
or eax, ecx
jne 0x4215a2
test ebx, ebx
ja 0x421582
jb 0x421517
cmp edi, 0xfa0
ja 0x421582
mov esi, edi
mov dword [ebp - 0x2c], ebx
jmp 0x42158e
push esi
call fcn.004221f0
add esp, 4
or eax, edx
jne 0x42154f
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x38]
sub edi, eax
sbb ebx, 0
jmp 0x421482
mov ecx, dword [ebp - 0x48]
sub ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x4c]
sbb eax, dword [ebp - 0x34]
add dword [ebp - 0x28], ecx
adc dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x38]
sub edi, eax
sbb ebx, 0
jmp 0x421482
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], ecx
jmp 0x421488
mov esi, 0xfa0
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x38], ecx
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], edi
mov dword [edx + 0x44], ebx
jmp 0x421619
add esi, dword [edx + 0x40]
mov eax, dword [ebp - 0x28]
adc ecx, dword [edx + 0x44]
cmp dword [ebp - 0x20], ecx
jb 0x4215f7
ja 0x4215b6
cmp eax, esi
jbe 0x4215f7
test ebx, ebx
ja 0x4215da
jb 0x4215c4
cmp edi, 0xfa0
ja 0x4215da
mov dword [edx + 0x38], eax
mov esi, edi
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ebx
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], edi
mov dword [edx + 0x44], ebx
jmp 0x421619
mov dword [edx + 0x38], eax
mov esi, 0xfa0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], 0
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], edi
mov dword [edx + 0x44], ebx
jmp 0x421619
sub esi, eax
sbb ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
ja 0x42160d
jb 0x421619
cmp esi, 0xfa0
jbe 0x421619
mov esi, 0xfa0
mov dword [ebp - 0x2c], 0
mov eax, dword [edx + 0x48]
push 0x4e6330
movzx ecx, byte [eax + 0xd]
movzx eax, word [eax + 0xb]
imul ecx, eax
imul ecx, esi
push ecx
call fcn.0043dbb6
add esp, 8
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x421669
mov edx, dword [ebp - 0x44]
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x28]
push esi
push dword [ebp - 0x20]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x20], ecx
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x2c]
push ecx
mov ecx, edx
mov dword [edx + 0x28], esi
mov dword [edx + 0x2c], eax
call fcn.00421900
mov eax, dword [ebp + 0x14]
sub esp, 8
mov edx, ebx
mov ecx, edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4b8350]
movsd qword [esp], xmm0
call fcn.0043ded0
sub esp, 8
movsd qword [esp], xmm0
call fcn.00482715
add esp, 0x10
fstp qword [ebp - 0x5c]
movsd xmm0, qword [ebp - 0x5c]
call fcn.0043dda1
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov ecx, dword [edx + 0x48]
mov dl, byte [ecx + 0xd]
movzx ecx, word [ecx + 0xb]
movzx esi, dl
mov dword [ebp - 0x38], esi
movzx esi, cx
imul esi, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 0x21], dl
mov edx, dword [ebp - 0x44]
imul esi, eax
mov eax, ecx
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], esi
jne 0x4216f7
push esi
push 0
push dword [ebp - 0x50]
call fcn.0047adc0
add esp, 0xc
jmp 0x4217a7
cmp dword [edx + 0x30], 0
je 0x421750
mov esi, dword [edx + 0x24]
mov eax, dword [edx + 0x20]
cmp dword [ebp - 0x20], esi
jb 0x421750
ja 0x42170e
cmp ecx, eax
jb 0x421750
mov esi, dword [edx + 0x28]
add esi, eax
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x3c], esi
adc eax, dword [edx + 0x24]
mov esi, dword [ebp - 0x34]
cmp dword [ebp - 0x20], eax
ja 0x421750
jb 0x42172b
cmp ecx, dword [ebp - 0x3c]
jae 0x421750
sub ecx, dword [edx + 0x20]
push esi
mov esi, dword [ebp - 0x2c]
movzx eax, si
imul ecx, eax
imul ecx, dword [ebp - 0x38]
add ecx, dword [edx + 0x30]
push ecx
push dword [ebp - 0x50]
call fcn.0047a2c0
mov esi, dword [ebp - 0x34]
add esp, 0xc
jmp 0x4217a7
mov eax, dword [ebp - 0x2c]
xorps xmm0, xmm0
movzx eax, ax
cdq
mov esi, eax
movlpd qword [ebp - 0x1c], xmm0
movzx eax, byte [ebp - 0x21]
mov ecx, edx
cdq
push edx
push eax
push ecx
push esi
mov dword [ebp - 0xc], 0
call fcn.0043da10
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
push ecx
push edx
push eax
call fcn.0043da10
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x44]
push eax
push esi
push dword [ebp - 0x50]
push dword [edx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x54]
add edx, eax
mov ecx, dword [ebp - 0x60]
adc dword [ebp - 0x4c], 0
add dword [ebp - 0x50], esi
sub dword [ebp + 0x14], eax
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x48], edx
jne 0x421320
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043d9c0
mov esp, ebp
pop ebp
ret 0x18