Function at 0x424d51
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ca3a
mov eax, dword fs:[0]
push eax
mov eax, 0x1090
call fcn.0042a280
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.00443480
add esp, 0xc
mov ecx, esi
call fcn.00424ab7
push 0x40
call fcn.00428fa8
mov dword [ebp - 0x107c], eax
and dword [ebp - 4], 0
mov ecx, eax
mov dword [esp], 0x4bb1cc
call fcn.004245b1
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x4c]
mov dword [ebp - 0x107c], eax
lea eax, [ebp - 0x107c]
push eax
call fcn.00403b97
mov ecx, ebx
call fcn.0040eca7
xor edi, edi
push 0x14
pop ecx
inc edi
cmp eax, ecx
jae 0x424e03
mov byte [ebp - 0x1075], 0
jmp 0x424e66
push 0
push 0
push ebx
call fcn.004511e5
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.004515b1
add esp, 0x10
test eax, eax
je 0x424dfa
cmp dword [ebp - 0x1098], 0x58453144
sete byte [ebp - 0x1075]
push 0
push 0
push ebx
call fcn.004511e5
add esp, 0xc
cmp byte [ebp - 0x1075], 0
je 0x425254
xor eax, eax
cmp dword [esi + 0x44], eax
jne 0x424ea2
push 0x4caeb4
lea eax, [ebp - 0x107c]
mov dword [ebp - 0x107c], 3
push eax
call fcn.0044395c
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.0045137f
pop ecx
test eax, eax
jne 0x424f14
push ebx
call fcn.0048edc7
pop ecx
mov byte [ebp - 0x107c], al
lea ecx, [ebp - 0x1074]
push dword [ebp - 0x107c]
push edi
call fcn.0040f214
push ebx
inc esi
call fcn.0045137f
pop ecx
test eax, eax
je 0x424ee3
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.00409de7
mov byte [ebp - 4], 3
cmp dword [ebp - 0x101c], 0
ja 0x424f58
push str.invalid_string_position
call fcn.004271df
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 0x424f95
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.0040fd5f
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x102c]
call fcn.00408b84
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.00425612
mov edi, eax
cmp edi, 0xffffffff
je 0x425152
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.0040d850
push eax
lea ecx, [ebp - 0x105c]
call fcn.0040a7df
xor ebx, ebx
lea ecx, [ebp - 0x102c]
push ebx
push 1
call fcn.00408bf0
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 0x425055
lea eax, [ebp - 0x1014]
push 0xd
push eax
call fcn.00443710
pop ecx
pop ecx
test eax, eax
jne 0x425087
lea eax, [ebp - 0x1014]
push 0xa
push eax
call fcn.00443710
pop ecx
pop ecx
test eax, eax
je 0x425089
mov byte [eax], bl
cmp byte [ebp - 0x1014], 0x3b
jne 0x4250a2
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.00424b0a
jmp 0x425116
lea ecx, [ebp - 0x1014]
call fcn.0040cf46
mov dword [ebp - 0x107c], eax
cmp byte [eax], 0x5b
jne 0x4250dc
lea eax, [ebp - 0x1014]
push 0x5d
push eax
call fcn.004435e0
pop ecx
pop ecx
test eax, eax
je 0x4250dc
mov eax, dword [ebp - 0x107c]
mov ecx, esi
push eax
call fcn.00424b49
jmp 0x425116
lea eax, [ebp - 0x1014]
push 0x3d
push eax
call fcn.004435e0
pop ecx
pop ecx
test eax, eax
je 0x425105
lea ecx, [ebp - 0x1014]
call fcn.0040cf46
push eax
mov ecx, esi
call fcn.00424c2d
jmp 0x425116
mov eax, dword [ebp - 0x107c]
cmp byte [eax], bl
jne 0x425116
mov ecx, esi
call fcn.00424d11
mov byte [ebp - 0x1014], bl
lea ebx, [edi + 1]
push ebx
push ecx
lea ecx, [ebp - 0x1044]
call fcn.00425612
mov edi, eax
cmp edi, 0xffffffff
jne 0x425007
cmp ebx, dword [ebp - 0x1034]
cmovb edi, dword [ebp - 0x1034]
cmp edi, eax
jne 0x425007
mov ebx, dword [ebp - 0x1084]
push 0
push 1
lea ecx, [ebp - 0x105c]
call fcn.00408bf0
push 0
push 1
lea ecx, [ebp - 0x1044]
call fcn.00408bf0
push 0
push 1
lea ecx, [ebp - 0x1074]
call fcn.00408b84
jmp 0x425263
push ebx
lea eax, [ebp - 0x1014]
push 0x1000
push eax
call fcn.0048ef8e
add esp, 0xc
lea eax, [ebp - 0x1014]
push 0xd
push eax
call fcn.00443710
pop ecx
pop ecx
test eax, eax
jne 0x4251c1
lea eax, [ebp - 0x1014]
push 0xa
push eax
call fcn.00443710
pop ecx
pop ecx
test eax, eax
je 0x4251c4
mov byte [eax], 0
cmp byte [ebp - 0x1014], 0x3b
jne 0x4251dd
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.00424b0a
jmp 0x42524d
lea ecx, [ebp - 0x1014]
call fcn.0040cf46
mov edi, eax
cmp byte [edi], 0x5b
jne 0x42520d
lea eax, [ebp - 0x1014]
push 0x5d
push eax
call fcn.004435e0
pop ecx
pop ecx
test eax, eax
je 0x42520d
push edi
mov ecx, esi
call fcn.00424b49
jmp 0x42524d
lea eax, [ebp - 0x1014]
push 0x3d
push eax
call fcn.004435e0
pop ecx
pop ecx
test eax, eax
je 0x425236
lea ecx, [ebp - 0x1014]
call fcn.0040cf46
push eax
mov ecx, esi
call fcn.00424c2d
jmp 0x42524d
cmp byte [edi], 0
jne 0x42524d
push ebx
call fcn.0045137f
pop ecx
test eax, eax
jne 0x42524d
mov ecx, esi
call fcn.00424d11
mov byte [ebp - 0x1014], 0
push ebx
call fcn.0045137f
pop ecx
test eax, eax
je 0x425184
test ebx, ebx
je 0x42526e
push ebx
call fcn.0044f50d
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.00428f89
mov esp, ebp
pop ebp
ret 4