Function at 0x4217e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x218
mov eax, dword [esp + 0x21c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x230]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [eax], ebx
jne 0x42181d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret
call fcn.00422100
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x1c], ebp
jne 0x42183c
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x218
ret
push ebp
push 0x42cee0
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.00421e80
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x42186d
push ebp
call dword [0x428ef8]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
mov edx, dword [esp + 0x10]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
or eax, ecx
je 0x4218a2
lea ecx, [esp + 0x14]
push 0x4282c0
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00421e80
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x421c9e
push ebp
lea eax, [esp + 0x18]
push 0x42ced8
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00421e80
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x421c9e
lea edx, [esp + 0x14]
push 0x42ceb0
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00421e80
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x421c9e
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.00421d70
mov esi, eax
add esp, 0x14
cmp esi, ebx
jne 0x421c9e
lea edx, [esp + 0x14]
push 0x42ceac
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00421e80
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x421c9e
cmp dword [edi + 0x24], ebx
je 0x42195b
call fcn.00422100
push eax
lea ecx, [esp + 0x18]
push 0x42ce7c
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x34], eax
call fcn.00421e80
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x421c9e
mov ebp, edi
jmp 0x421966
mov edi, dword [esp + 0x230]
cmp dword [edi + 0x24], ebx
je 0x4219c2
cmp dword [ebp + 0x2c], ebx
jne 0x421980
mov eax, dword [ebp + 0xc]
push eax
call fcn.00421ed0
add esp, 4
mov edi, eax
jmp 0x421982
xor edi, edi
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
jne 0x42198b
mov eax, edi
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x42ce44
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00421e80
add esp, 0x14
cmp edi, ebx
mov esi, eax
je 0x4219b8
push edi
call dword [0x428ef8]
add esp, 4
cmp esi, ebx
jne 0x421c71
jmp 0x421a1f
test byte [edi + 0x28], 0x11
je 0x421a1f
cmp dword [edi + 0x2c], ebx
jne 0x4219dd
mov ecx, dword [edi + 0xc]
push ecx
call fcn.00421ed0
add esp, 4
mov edi, eax
jmp 0x4219df
xor edi, edi
mov edx, dword [esp + 0x230]
mov eax, dword [edx + 0x2c]
cmp eax, ebx
jne 0x4219ef
mov eax, edi
push eax
lea eax, [esp + 0x18]
push 0x42ce34
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00421e80
add esp, 0x10
cmp edi, ebx
mov esi, eax
je 0x421a17
push edi
call dword [0x428ef8]
add esp, 4
cmp esi, ebx
jne 0x421c71
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x421a48
push eax
lea edx, [esp + 0x18]
push 0x42ce20
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00421e80
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x421c71
mov edi, dword [ebp + 0x20]
cmp edi, ebx
je 0x421a7c
mov ecx, dword [edi]
lea edx, [esp + 0x14]
push ecx
push 0x42ce18
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00421e80
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x421c27
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x421a4f
jmp 0x421a84
cmp esi, ebx
jne 0x421c27
lea ecx, [esp + 0x14]
push 0x42ce10
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00421e80
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x421c71
mov ecx, dword [esp + 0x230]
mov eax, dword [ecx + 0x28]
test al, 3
jne 0x421af3
test al, 0x10
je 0x421acc
mov edx, dword [ecx + 0x18]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx + 0x14]
push edx
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
jmp 0x421adf
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.00421d70
mov esi, eax
add esp, 0x14
cmp esi, ebx
jne 0x421c71
jmp 0x421b63
mov eax, dword [ebp + 0xc]
push eax
push 0x42ab90
call fcn.004137e0
add esp, 8
test eax, eax
je 0x421b10
mov edi, dword [sym.imp.MSVCRT.dll__iob]
jmp 0x421b24
mov ecx, dword [ebp + 0xc]
push 0x42ce0c
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov edi, eax
cmp edi, ebx
je 0x421d3a
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push edi
cmp edi, eax
je 0x421bcc
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x18]
push edx
push ebx
push eax
lea ecx, [esp + 0x20]
push 1
push ecx
call fcn.00421d70
mov esi, eax
add esp, 0x18
cmp esi, ebx
jne 0x421c4c
mov ebp, dword [ebp + 0x24]
cmp ebp, ebx
jne 0x42195f
cmp esi, ebx
jne 0x421c71
mov ebp, dword [esp + 0x230]
cmp dword [ebp + 0x24], ebx
je 0x421baf
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edi
push 0x42ce00
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00421e80
push edi
mov esi, eax
call dword [0x428ef8]
add esp, 0x14
cmp esi, ebx
jne 0x421c9a
mov eax, dword [ebp]
cmp eax, ebx
mov dword [esp + 0x230], eax
je 0x421c96
mov ebp, dword [esp + 0x1c]
mov edi, eax
jmp 0x421875
push 0x200
lea edx, [esp + 0x30]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, ebx
je 0x421b63
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push eax
push edx
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00421d70
mov esi, eax
add esp, 0x14
cmp esi, ebx
jne 0x421c4c
push edi
push 0x200
lea ecx, [esp + 0x30]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, ebx
jne 0x421be9
jmp 0x421b63
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004217b0
mov edx, dword [esp + 0x20]
push edx
call dword [0x428ef8]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
mov eax, dword [esp + 0x20]
push eax
call fcn.004217b0
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x428ef8]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
mov edx, dword [esp + 0x20]
push edx
call fcn.004217b0
mov eax, dword [esp + 0x20]
push eax
call dword [0x428ef8]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
cmp esi, ebx
je 0x421cbf
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004217b0
push ebp
call dword [0x428ef8]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edi
push 0x42cdf4
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00421e80
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x421d02
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004217b0
push edi
call dword [0x428ef8]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
mov eax, dword [esp + 0x234]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edi
mov dword [eax], edx
mov dword [eax + 4], ecx
call dword [0x428ef8]
mov eax, dword [esp + 0x230]
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [eax], edx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004217b0
mov edx, dword [esp + 0x20]
push edx
call dword [0x428ef8]
mov eax, dword [esp + 0x234]
add esp, 8
pop edi
pop esi
mov dword [eax], ebx
pop ebp
mov eax, 0x1a
pop ebx
add esp, 0x218
ret