Function at 0x424d9a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cc7a
mov eax, dword fs:[0]
push eax
mov eax, 0x1090
call fcn.0042a2f0
mov eax, dword [0x4cf094]
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 esi, ecx
mov dword [ebp - 0x1080], esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1014]
push 0x1000
push 0
push eax
mov dword [ebp - 0x1084], ebx
call fcn.004434f0
add esp, 0xc
mov ecx, esi
call fcn.00424b00
push 0x40
call fcn.00428fbb
mov dword [ebp - 0x107c], eax
and dword [ebp - 4], 0
mov ecx, eax
mov dword [esp], 0x4bb1a0
call fcn.004245fa
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x4c]
mov dword [ebp - 0x107c], eax
lea eax, [ebp - 0x107c]
push eax
call fcn.00403be7
mov ecx, ebx
call fcn.0040edb7
xor edi, edi
push 0x14
pop ecx
inc edi
cmp eax, ecx
jae 0x424e4c
mov byte [ebp - 0x1075], 0
jmp 0x424eaf
push 0
push 0
push ebx
call fcn.00451255
add esp, 0xc
mov dword [ebp - 0x1098], 0x58453144
xor eax, eax
mov word [ebp - 0x1092], di
mov byte [ebp - 0x1090], al
mov dword [ebp - 0x108c], eax
push 0x14
pop ecx
push ebx
push edi
mov dword [ebp - 0x1088], eax
lea eax, [ebp - 0x1098]
push ecx
push eax
mov word [ebp - 0x1094], cx
call fcn.00451621
add esp, 0x10
test eax, eax
je 0x424e43
cmp dword [ebp - 0x1098], 0x58453144
sete byte [ebp - 0x1075]
push 0
push 0
push ebx
call fcn.00451255
add esp, 0xc
cmp byte [ebp - 0x1075], 0
je 0x42529d
xor eax, eax
cmp dword [esi + 0x44], eax
jne 0x424eeb
push 0x4caedc
lea eax, [ebp - 0x107c]
mov dword [ebp - 0x107c], 3
push eax
call fcn.004439cc
push 0xf
pop ecx
mov dword [ebp - 0x1060], ecx
mov dword [ebp - 0x1064], eax
mov byte [ebp - 0x1074], al
mov dword [ebp - 4], edi
mov dword [ebp - 0x1030], ecx
mov dword [ebp - 0x1034], eax
mov byte [ebp - 0x1044], al
mov byte [ebp - 4], 2
mov esi, eax
push ebx
mov dword [ebp - 0x107c], eax
call fcn.004513ef
pop ecx
test eax, eax
jne 0x424f5d
push ebx
call fcn.0048eee7
pop ecx
mov byte [ebp - 0x107c], al
lea ecx, [ebp - 0x1074]
push dword [ebp - 0x107c]
push edi
call fcn.0040f326
push ebx
inc esi
call fcn.004513ef
pop ecx
test eax, eax
je 0x424f2c
mov dword [ebp - 0x107c], esi
xor eax, eax
mov dword [ebp - 0x1018], 0xf
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x101c], eax
lea ecx, [ebp - 0x102c]
mov byte [ebp - 0x102c], al
lea eax, [ebp - 0x1074]
push eax
call fcn.00409e87
mov byte [ebp - 4], 3
cmp dword [ebp - 0x101c], 0
ja 0x424fa1
push str.invalid_string_position
call fcn.004271f2
cmp dword [ebp - 0x1018], 0x10
lea esi, [ebp - 0x102c]
push 5
cmovae esi, dword [ebp - 0x102c]
lea edi, [ebp - 0x1098]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1080]
lea edx, [ebp - 0x102c]
cmovae edx, dword [ebp - 0x102c]
lea edi, [esi + 0x34]
cmp dword [edi + 0x14], 0x10
jb 0x424fde
mov edi, dword [edi]
movsx eax, word [ebp - 0x1094]
lea ecx, [ebp - 0x1044]
push ecx
mov ecx, dword [ebp - 0x107c]
add edx, eax
sub ecx, eax
dec ecx
push ecx
mov ecx, edi
call fcn.0040fe03
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x102c]
call fcn.00408c24
xor eax, eax
mov dword [ebp - 0x1048], 0xf
mov dword [ebp - 0x1080], eax
mov dword [ebp - 0x104c], eax
mov byte [ebp - 0x105c], al
push eax
push ecx
lea ecx, [ebp - 0x1044]
mov byte [ebp - 4], 4
call fcn.0042565b
mov edi, eax
cmp edi, 0xffffffff
je 0x42519b
mov ebx, dword [ebp - 0x1080]
mov eax, edi
lea ecx, [ebp - 0x1044]
sub eax, ebx
push eax
push ebx
lea eax, [ebp - 0x102c]
push eax
call fcn.0040d95e
push eax
lea ecx, [ebp - 0x105c]
call fcn.0040a87f
xor ebx, ebx
lea ecx, [ebp - 0x102c]
push ebx
push 1
call fcn.00408c90
cmp dword [ebp - 0x1048], 0x10
lea ecx, [ebp - 0x105c]
lea edx, [ebp - 0x1014]
cmovae ecx, dword [ebp - 0x105c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x42509e
lea eax, [ebp - 0x1014]
push 0xd
push eax
call fcn.00443780
pop ecx
pop ecx
test eax, eax
jne 0x4250d0
lea eax, [ebp - 0x1014]
push 0xa
push eax
call fcn.00443780
pop ecx
pop ecx
test eax, eax
je 0x4250d2
mov byte [eax], bl
cmp byte [ebp - 0x1014], 0x3b
jne 0x4250eb
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.00424b53
jmp 0x42515f
lea ecx, [ebp - 0x1014]
call fcn.0040d054
mov dword [ebp - 0x107c], eax
cmp byte [eax], 0x5b
jne 0x425125
lea eax, [ebp - 0x1014]
push 0x5d
push eax
call fcn.00443650
pop ecx
pop ecx
test eax, eax
je 0x425125
mov eax, dword [ebp - 0x107c]
mov ecx, esi
push eax
call fcn.00424b92
jmp 0x42515f
lea eax, [ebp - 0x1014]
push 0x3d
push eax
call fcn.00443650
pop ecx
pop ecx
test eax, eax
je 0x42514e
lea ecx, [ebp - 0x1014]
call fcn.0040d054
push eax
mov ecx, esi
call fcn.00424c76
jmp 0x42515f
mov eax, dword [ebp - 0x107c]
cmp byte [eax], bl
jne 0x42515f
mov ecx, esi
call fcn.00424d5a
mov byte [ebp - 0x1014], bl
lea ebx, [edi + 1]
push ebx
push ecx
lea ecx, [ebp - 0x1044]
call fcn.0042565b
mov edi, eax
cmp edi, 0xffffffff
jne 0x425050
cmp ebx, dword [ebp - 0x1034]
cmovb edi, dword [ebp - 0x1034]
cmp edi, eax
jne 0x425050
mov ebx, dword [ebp - 0x1084]
push 0
push 1
lea ecx, [ebp - 0x105c]
call fcn.00408c90
push 0
push 1
lea ecx, [ebp - 0x1044]
call fcn.00408c90
push 0
push 1
lea ecx, [ebp - 0x1074]
call fcn.00408c24
jmp 0x4252ac
push ebx
lea eax, [ebp - 0x1014]
push 0x1000
push eax
call fcn.0048f0ae
add esp, 0xc
lea eax, [ebp - 0x1014]
push 0xd
push eax
call fcn.00443780
pop ecx
pop ecx
test eax, eax
jne 0x42520a
lea eax, [ebp - 0x1014]
push 0xa
push eax
call fcn.00443780
pop ecx
pop ecx
test eax, eax
je 0x42520d
mov byte [eax], 0
cmp byte [ebp - 0x1014], 0x3b
jne 0x425226
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.00424b53
jmp 0x425296
lea ecx, [ebp - 0x1014]
call fcn.0040d054
mov edi, eax
cmp byte [edi], 0x5b
jne 0x425256
lea eax, [ebp - 0x1014]
push 0x5d
push eax
call fcn.00443650
pop ecx
pop ecx
test eax, eax
je 0x425256
push edi
mov ecx, esi
call fcn.00424b92
jmp 0x425296
lea eax, [ebp - 0x1014]
push 0x3d
push eax
call fcn.00443650
pop ecx
pop ecx
test eax, eax
je 0x42527f
lea ecx, [ebp - 0x1014]
call fcn.0040d054
push eax
mov ecx, esi
call fcn.00424c76
jmp 0x425296
cmp byte [edi], 0
jne 0x425296
push ebx
call fcn.004513ef
pop ecx
test eax, eax
jne 0x425296
mov ecx, esi
call fcn.00424d5a
mov byte [ebp - 0x1014], 0
push ebx
call fcn.004513ef
pop ecx
test eax, eax
je 0x4251cd
test ebx, ebx
je 0x4252b7
push ebx
call fcn.0044f588
pop ecx
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.00428f9c
mov esp, ebp
pop ebp
ret 4