Function at 0x435d30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x214], 0
push 0x206
push eax
mov word [ebp - 0x210], ax
mov ebx, ecx
lea eax, [ebp - 0x20e]
mov dword [ebp - 0x238], ebx
push eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x228], 0
call fcn.0053e230
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0x220], xmm0
push 2
push 0
push 0xffffff4a
push dword [ebx + 8]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x214]
push 0
push eax
push 0xb6
lea eax, [ebp - 0x210]
push eax
push dword [ebx + 8]
call edi
cmp dword [ebp - 0x214], 0xb6
jne 0x435fe1
mov ecx, str._JZSTART_1E222D06_2CB2_4220_AF52_E0B7E800F5C1_CBA04DEF_39E0_45e4_854F_B3EA272DE745_JZEND_
lea eax, [ebp - 0x210]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435e0a
test dx, dx
je 0x435e06
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435e0a
add eax, 4
add ecx, 4
test dx, dx
jne 0x435de4
xor eax, eax
jmp 0x435e0f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x435fe1
push 1
push eax
push 0xffffff46
push dword [ebx + 8]
call esi
push 0
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x230]
push eax
push dword [ebx + 8]
call edi
mov eax, dword [ebp - 0x230]
add eax, dword [ebp - 0x214]
push 1
push 0
neg eax
push eax
push dword [ebx + 8]
call esi
push 0
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x228]
push eax
push dword [ebx + 8]
call edi
cmp dword [ebp - 0x228], 0
mov edx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x234], 0
jbe 0x435f9b
lea esi, [ebx + 0x26f4]
mov dword [ebp - 0x22c], edx
lea edi, [ebx + 0x5cfe0]
mov dword [ebp - 0x21c], eax
push 0
lea ecx, [ebp - 0x214]
push ecx
push 0x20
lea eax, [edi - 0x18]
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi]
lea edx, [edi - 0x18]
add dword [edi - 0x10], eax
mov eax, dword [edi + 4]
adc dword [edi - 0xc], eax
mov ecx, dword [edi - 8]
sub ecx, dword [edi - 0x10]
mov eax, dword [edi - 4]
sbb eax, dword [edi - 0xc]
add ecx, 1
mov dword [edx], 0
adc eax, 0
mov dword [edi - 0x14], 0
add dword [ebp - 0x21c], ecx
mov dword [edi], 0
adc dword [ebp - 0x22c], eax
lea eax, [ebp - 0x224]
mov dword [edi + 4], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x224], edx
cmp eax, ecx
jae 0x435f56
mov eax, dword [esi]
lea ebx, [ebp - 0x224]
cmp eax, ebx
mov ebx, dword [ebp - 0x238]
ja 0x435f56
lea ebx, [ebp - 0x224]
sub ebx, eax
sar ebx, 2
cmp ecx, dword [esi + 8]
jne 0x435f40
push ecx
mov ecx, esi
call fcn.00438010
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x435f4e
mov eax, dword [esi]
mov eax, dword [eax + ebx*4]
mov dword [ecx], eax
mov ebx, dword [ebp - 0x238]
jmp 0x435f6f
cmp ecx, dword [esi + 8]
jne 0x435f66
push ecx
mov ecx, esi
call fcn.00438010
lea edx, [edi - 0x18]
mov eax, dword [esi + 4]
test eax, eax
je 0x435f6f
mov dword [eax], edx
mov eax, dword [ebp - 0x234]
add edi, 0x20
add dword [esi + 4], 4
inc eax
mov dword [ebp - 0x234], eax
cmp eax, dword [ebp - 0x228]
jb 0x435ea5
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebx + 0x5d110]
sub ecx, eax
mov eax, dword [ebx + 0x5d114]
mov dword [ebx + 0x5d128], ecx
sbb eax, edx
mov dword [ebx + 0x5d12c], eax
mov eax, ecx
mov dword [ebx + 0x5d120], eax
mov eax, dword [ebx + 0x5d12c]
mov dword [ebx + 0x5d124], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret