Function at 0x4ea7e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
test ebx, ebx
jne 0x4ea80a
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
test edx, edx
je 0x4ea7ff
mov eax, dword [ecx]
test eax, eax
jne 0x4ea802
mov ecx, dword [edx + 0x28]
test ecx, ecx
je 0x4ea839
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [ebp + 8], ebx
mov eax, dword [ebp - 0x30]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004e8e80
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x4eaee8
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], 0
mov edi, dword [ecx + 0x34]
test edi, edi
jle 0x4ea883
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
call fcn.004e8fd0
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebx + 0x44]
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x24], 0
lea eax, [esi + eax*8]
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
mov eax, dword [ebx]
mov edx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 0x20], 1
add edx, 0x40
mov dword [ebp - 0x40], edx
test eax, eax
jne 0x4ea802
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x4eacb2
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebx + 0x14]
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x1c], 0
mov eax, dword [eax + 0x18]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x10], ecx
cmp eax, ecx
jl 0x4ea92c
jmp 0x4eabf0
cmp edx, 0x123456
je 0x4eaa3a
test edx, edx
js 0x4eab8f
mov ecx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x2c]
mov ecx, dword [eax + edx*4]
mov eax, dword [ebx + 8]
mov ebx, dword [eax + 0x18]
lea edx, [ebx + edx*8]
cmp ecx, dword [edx]
jl 0x4ea90e
cmp ecx, dword [edx + 4]
setle al
xor ebx, ebx
mov bl, al
dec ebx
je 0x4eaa87
mov ecx, dword [ebp - 0x30]
mov esi, dword [ecx + 0x14]
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x18]
inc eax
mov dword [ebx + 0x18], eax
mov edx, dword [esi + 0x18]
mov dword [ebp - 0x10], edx
cmp edx, eax
jle 0x4eabf0
mov ecx, dword [esi + 0x1c]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x2c], eax
mov edx, dword [eax + 4]
test edx, edx
js 0x4ea914
mov ebx, dword [eax]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x28], ebx
cmp edx, 0x123457
jne 0x4ea8d0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4eaca2
mov edi, dword [esi + 0x18]
test edi, edi
jle 0x4ea914
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
jmp 0x4ea9c0
cmp ebx, dword [esi + 4]
jge 0x4eaa24
mov eax, dword [edi]
test eax, eax
je 0x4eaa2f
push edi
push edi
mov esi, dword [eax + 0x14]
push esi
mov ebx, dword [ebp - 0x34]
push ebx
call fcn.004832e0
add esp, 0x10
test eax, eax
jne 0x4eaa87
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebx + 0x14]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
inc ecx
add edx, 0x14
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], edx
mov ebx, dword [ebp - 0x1c]
cmp dword [esi + 0x18], ebx
jle 0x4ea914
mov edi, dword [ebp - 0x14]
mov ebx, dword [esi + 0x1c]
add edi, ebx
mov edx, dword [edi + 8]
test edx, edx
js 0x4ea9a4
cmp edi, dword [ebp - 0x2c]
je 0x4ea9a4
mov esi, dword [ebp - 0x30]
mov eax, dword [esi + 8]
lea esi, [edx*8]
mov ecx, dword [eax + 0x18]
add esi, ecx
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x2c]
mov ebx, dword [eax + edx*4]
cmp ebx, dword [esi + 4]
jge 0x4eaa14
mov eax, dword [edi]
test eax, eax
je 0x4eaa14
push edx
push edx
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 0x34]
push eax
call fcn.004832e0
add esp, 0x10
test eax, eax
jne 0x4ead3a
cmp ebx, dword [esi]
jge 0x4ea971
mov eax, dword [ebp - 0x30]
mov esi, dword [eax + 0x14]
jmp 0x4ea9a4
mov edx, dword [ebp - 0x30]
mov esi, dword [edx + 0x14]
jmp 0x4ea9a4
mov ecx, dword [ebp - 0x30]
mov esi, dword [ecx + 0x14]
jmp 0x4ea9a4
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x4eaa87
mov ebx, ecx
xor edi, edi
mov ecx, dword [ebx + 8]
test ecx, ecx
js 0x4eaa7e
cmp ebx, dword [ebp - 0x2c]
je 0x4eaa7e
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
lea edx, [ecx*8]
add edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x44], eax
mov ecx, dword [eax + ecx*4]
cmp ecx, dword [edx]
jl 0x4ea914
cmp ecx, dword [edx + 4]
jg 0x4ea914
inc edi
add ebx, 0x14
cmp edi, dword [ebp - 0x10]
jne 0x4eaa45
mov esi, dword [ebp - 0x30]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4eaab7
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4eaab7
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x4eaab7
mov edi, dword [ebp - 0x38]
push edi
mov edx, dword [ebp - 0x28]
mov ebx, dword [edx + 0x3c]
push ebx
mov ecx, dword [edx + 0x14]
push ecx
mov edx, dword [esi + 0x10]
push edx
call eax
add esp, 0x10
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x18]
inc eax
cmp dword [edx + 0x18], eax
jle 0x4eaad9
mov eax, dword [ecx + 0x34]
test eax, eax
jle 0x4eae91
mov eax, dword [ebp - 0x30]
call fcn.004ea660
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx + 8]
test eax, eax
js 0x4eaaf3
shl eax, 2
mov esi, dword [ebp - 0x30]
mov edi, dword [esi + 0x2c]
add eax, edi
mov esi, dword [eax]
inc esi
mov dword [eax], esi
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0xc]
cmp edx, 0x123455
ja 0x4eab0e
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x2c]
mov dword [eax + edx*4], 0
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov eax, dword [ebx + 4]
mov edx, dword [esi + 8]
lea ecx, [eax*4]
mov eax, dword [edx + 8]
mov eax, dword [eax + ecx]
test eax, eax
je 0x4eab34
cmp dword [eax], 4
je 0x4eacde
mov eax, dword [edx + 8]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], 1
mov esi, dword [eax + ecx]
mov eax, dword [ebp - 0x30]
mov ecx, dword [edx]
mov dword [eax + 0x14], esi
mov dword [eax + 0x18], 0
test ecx, ecx
je 0x4eab85
mov edx, dword [eax + 0x44]
test edx, edx
je 0x4eac88
mov ecx, eax
mov eax, dword [eax + 0x38]
inc eax
mov dword [ecx + 0x38], eax
cmp eax, dword [ecx + 0x34]
jge 0x4eac88
mov ebx, dword [ecx + 0x44]
lea eax, [ebx + eax*8]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], eax
mov esi, dword [ebp - 0x30]
mov eax, dword [esi]
jmp 0x4ea896
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x4eaea4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4ea914
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x14]
mov edx, dword [ebp - 0x34]
call fcn.004e3e90
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + 0x1c]
mov ebx, eax
test ecx, ecx
je 0x4eabd3
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x4ea90e
test eax, eax
sete al
xor ebx, ebx
mov bl, al
cmp ebx, 1
je 0x4ead45
test ebx, ebx
jns 0x4ea90e
mov esi, dword [ebp - 0x30]
mov dword [esi], 0xfffffffc
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x4eac01
mov ecx, dword [ebp - 0x30]
mov esi, dword [ecx + 0x14]
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x4eab85
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4eac62
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4eac62
cmp dword [eax], 4
je 0x4eac62
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x4eac2b
sub esp, 0xc
push eax
call dword [0x519080]
add esp, 0x10
sub esp, 0xc
mov edi, dword [ebp - 0x34]
push edi
call fcn.00483c60
mov esi, dword [ebp - 0x30]
add esp, 0x10
cld
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x54]
mov esi, dword [esi + 0x2c]
mov ecx, dword [eax + 0x14]
shl ecx, 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x30]
mov eax, edx
mov dword [edx + 4], 0
call fcn.004ea5d0
mov ecx, dword [ebp - 0x30]
mov esi, dword [ecx]
test esi, esi
jne 0x4eab85
mov eax, dword [ecx + 0x38]
jmp 0x4eab74
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x20], 1
jmp 0x4eab85
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4eaa87
jmp 0x4ea914
cmp dword [ebp - 0x24], 1
jne 0x4eaf1d
mov ecx, dword [ebp - 0x30]
mov esi, dword [ecx + 0x14]
cmp dword [esi], 2
je 0x4eaf08
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx + 0x2c]
test ecx, ecx
jne 0x4ea8af
jmp 0x4eac01
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4eacf2
sub esp, 0xc
push eax
call dword [0x519080]
add esp, 0x10
sub esp, 0xc
mov ebx, dword [ebp - 0x34]
push ebx
call fcn.00483c60
mov edx, dword [ebp - 0x30]
add esp, 0x10
cld
mov dword [edx + 0x50], eax
mov eax, dword [edx + 0x14]
mov dword [edx + 0x4c], eax
mov eax, dword [edx + 8]
mov edi, dword [edx + 0x54]
mov esi, dword [edx + 0x2c]
mov ecx, dword [eax + 0x14]
shl ecx, 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov eax, dword [ecx + 4]
mov edx, dword [ebx + 8]
lea ecx, [eax*4]
jmp 0x4eab34
mov eax, dword [ebp - 0x30]
mov esi, dword [eax + 0x14]
jmp 0x4ea914
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + 8]
test esi, esi
js 0x4ead6f
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0x2c]
mov edx, dword [eax + 0x18]
mov eax, dword [ecx + esi*4]
cmp eax, dword [edx + esi*8 + 4]
jl 0x4ead6f
mov edx, dword [ebp - 0x30]
mov esi, dword [edx + 0x14]
jmp 0x4ea914
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + 0xc]
test edi, edi
jle 0x4eaa87
mov ecx, dword [esi + 0x10]
test ecx, ecx
jle 0x4eaa87
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
mov edx, dword [esi + 4]
mov eax, dword [eax + 8]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], edx
mov edx, eax
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
inc eax
cmp dword [esi + 0x18], eax
jle 0x4eadca
mov eax, dword [edx + 0x34]
test eax, eax
jle 0x4eaf27
mov eax, dword [ebp - 0x30]
call fcn.004ea660
mov esi, dword [ebp - 0x28]
mov ecx, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x1c], 1
jmp 0x4eaddc
mov ecx, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
mov esi, dword [ebp - 0x30]
mov edx, dword [esi + 0x1c]
cmp edx, ecx
je 0x4eae75
mov ecx, dword [esi + 0x38]
lea eax, [ecx + 1]
mov dword [esi + 0x38], eax
shl eax, 3
add eax, dword [esi + 0x44]
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], eax
test esi, esi
je 0x4eaeda
mov esi, dword [ebp - 0x30]
cmp dword [esi + 0x1c], edi
jl 0x4eae45
mov eax, esi
mov edx, dword [ebp - 0x18]
mov edi, dword [esi + 0x18]
mov esi, dword [esi + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [eax + 0x34]
mov dword [eax + 0x18], 0xffffffff
test edx, edx
jle 0x4eaeca
mov eax, dword [ebp - 0x30]
call fcn.004ea660
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], esi
push eax
push eax
mov esi, dword [ebp - 0x28]
mov eax, dword [esi + 0x14]
push eax
mov edi, dword [ebp - 0x34]
push edi
call fcn.004832e0
mov ecx, dword [ebp - 0x30]
add esp, 0x10
mov edx, dword [ecx + 0x1c]
inc edx
cmp eax, 1
mov dword [ecx + 0x1c], edx
je 0x4eadd6
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebx + 0xc]
mov ebx, eax
cmp edx, edi
jl 0x4eac01
cmp ebx, 0
jl 0x4eac01
jne 0x4ea907
jmp 0x4eac01
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
call fcn.004e8fd0
jmp 0x4eaad1
mov esi, dword [ebp - 0x40]
push esi
push 0x23
push 1
push str.epsilon_transition_left_at_runtime_n
call sub.msvcrt.dll_fwrite
mov esi, dword [ebp - 0x30]
add esp, 0x10
mov eax, dword [esi + 0x18]
mov dword [esi], 0xfffffffe
jmp 0x4eabf0
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
call fcn.004e8fd0
jmp 0x4eae34
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x38], ecx
mov ecx, dword [ebp - 0x28]
mov edi, dword [ecx + 0xc]
jmp 0x4eae75
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x24], 1
mov esi, dword [edx + 0x14]
cmp dword [esi], 2
jne 0x4ea883
mov eax, 1
jmp 0x4ea802
mov eax, 2
cmp eax, 2
sete al
and eax, 0xff
jmp 0x4ea802
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x14]
mov eax, dword [eax]
jmp 0x4eaf0d
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
call fcn.004e8fd0
jmp 0x4eadb9