Function at 0x4ba460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
or eax, 0xffffffff
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 1
test ebx, ebx
je 0x4ba620
mov edx, dword [ebx + 8]
test edx, edx
je 0x4ba620
mov eax, dword [ebx]
test eax, eax
jne 0x4ba620
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x4ba628
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4ba778
mov edi, dword [ebx + 0x34]
test edi, edi
jle 0x4ba4f6
sub esp, 0xc
mov esi, dword [ebp - 0x14]
mov eax, ebx
push esi
mov edx, dword [ebp - 0x10]
call fcn.004ba250
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x44]
add esp, 0x10
mov ecx, dword [eax + edx*8]
mov edx, dword [eax + edx*8 + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebx]
test eax, eax
jne 0x4ba620
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4ba605
mov esi, dword [ebx + 0x14]
mov dword [ebx + 0x1c], 0
mov eax, dword [ebx + 0x18]
cmp eax, dword [esi + 0x18]
jge 0x4ba57f
lea eax, [eax + eax*4]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x1c], eax
mov edx, dword [eax + 4]
test edx, edx
js 0x4ba573
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0xc]
cmp edx, 0x123457
je 0x4ba642
cmp edx, 0x123456
je 0x4ba705
test edx, edx
js 0x4ba8d6
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax + edx*4]
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x18]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
jg 0x4ba570
cmp dword [eax + 4], ecx
jge 0x4ba7c6
lea esi, [esi]
mov esi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
inc eax
mov dword [ebx + 0x18], eax
cmp eax, dword [esi + 0x18]
jl 0x4ba513
test eax, eax
je 0x4ba765
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4ba5d9
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4ba5d9
cmp dword [eax], 4
je 0x4ba5d9
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x28], 0
test eax, eax
jne 0x4baaa5
sub esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call fcn.004622d0
cld
mov dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0x54]
mov esi, dword [ebx + 0x2c]
mov ecx, dword [eax + 0x14]
add esp, 0x10
shl ecx, 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
mov dword [ebx + 4], 0
call fcn.004b9f10
mov eax, dword [ebx]
test eax, eax
jne 0x4ba620
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x44]
mov ecx, dword [eax + edx*8]
mov edx, dword [eax + edx*8 + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
jmp 0x4ba4f6
cmp dword [ebp - 0x24], 1
je 0x4ba790
mov eax, dword [ebx + 0x14]
cmp dword [eax], 2
sete al
and eax, 0xff
lea esi, [esi]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], esi
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004ba320
mov eax, dword [ebp - 0x10]
test eax, eax
mov eax, dword [ebp - 0x24]
sete dl
test eax, eax
setne al
and eax, 0xff
test edx, eax
jne 0x4ba7c6
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4ba570
mov edi, dword [esi + 0x18]
mov dword [ebp - 0x2c], 0
test edi, edi
jle 0x4ba570
mov dword [ebp - 0x3c], 0
jmp 0x4ba6a1
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
inc edx
add eax, 0x14
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
cmp dword [esi + 0x18], eax
jle 0x4ba570
mov ecx, dword [esi + 0x1c]
mov edi, dword [ebp - 0x3c]
add edi, ecx
mov ecx, dword [edi + 8]
mov edx, ecx
shr edx, 0x1f
cmp edi, dword [ebp - 0x1c]
sete al
and eax, 0xff
or edx, eax
jne 0x4ba685
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x18]
lea eax, [eax + ecx*8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebp - 0x30]
mov esi, dword [eax + ecx*4]
cmp dword [edx + 4], esi
jle 0x4ba6e4
mov eax, dword [edi]
test eax, eax
jne 0x4ba8b7
mov ecx, dword [ebp - 0x30]
cmp dword [ecx], esi
jg 0x4ba700
cmp dword [ecx + 4], esi
jle 0x4ba700
mov eax, dword [edi]
test eax, eax
jne 0x4ba7ac
lea esi, [esi]
mov esi, dword [ebx + 0x14]
jmp 0x4ba685
mov eax, dword [esi + 0x18]
xor edi, edi
cmp eax, 0
jle 0x4ba7c6
mov esi, ecx
mov dword [ebp - 0x34], eax
jmp 0x4ba72d
inc edi
add esi, 0x14
cmp dword [ebp - 0x34], edi
jle 0x4ba7c6
mov ecx, dword [esi + 8]
mov edx, ecx
shr edx, 0x1f
cmp esi, dword [ebp - 0x1c]
sete al
and eax, 0xff
or edx, eax
jne 0x4ba720
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x18]
lea edx, [eax + ecx*8]
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + ecx*4]
cmp dword [edx], eax
jg 0x4ba570
cmp dword [edx + 4], eax
jge 0x4ba720
jmp 0x4ba570
mov esi, dword [ebx + 0x14]
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x4ba4ec
jmp 0x4ba587
mov esi, dword [ebx + 0x14]
mov eax, 1
cmp dword [esi], 2
je 0x4ba620
mov dword [ebp - 0x24], 1
mov esi, dword [ebx + 0x14]
cmp dword [esi], 2
je 0x4ba60f
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
jne 0x4ba504
jmp 0x4ba587
push edi
push edi
mov esi, dword [eax + 0x14]
push esi
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004623e0
add esp, 0x10
test eax, eax
je 0x4ba700
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
setne dl
test eax, eax
setne al
and eax, 0xff
test edx, eax
je 0x4ba7fe
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4ba7fe
mov esi, dword [ebp - 0x14]
push esi
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x3c]
push edx
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebx + 0x10]
push eax
call ecx
add esp, 0x10
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
inc eax
cmp dword [edx + 0x18], eax
jle 0x4ba81c
mov edi, dword [ebx + 0x34]
test edi, edi
jle 0x4baab7
mov eax, ebx
call fcn.004b9d80
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
test edx, edx
js 0x4ba830
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax + edx*4]
inc ecx
mov dword [eax + edx*4], ecx
mov esi, dword [ebp - 0x1c]
mov edx, dword [esi + 0xc]
cmp edx, 0x123455
ja 0x4ba848
mov eax, dword [ebx + 0x2c]
mov dword [eax + edx*4], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 8]
mov edx, dword [eax + 4]
mov eax, dword [ecx + 8]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x4ba864
cmp dword [eax], 4
je 0x4ba938
mov eax, dword [ecx + 8]
mov dword [ebx + 0x18], 0
mov esi, dword [eax + edx*4]
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x14], esi
mov eax, dword [eax]
test eax, eax
je 0x4ba8ab
mov edx, dword [ebx + 0x44]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
test edx, edx
je 0x4ba8ab
mov eax, dword [ebx + 0x38]
inc eax
mov dword [ebx + 0x38], eax
cmp eax, dword [ebx + 0x34]
jge 0x4ba8ab
mov esi, dword [edx + eax*8]
mov eax, dword [edx + eax*8 + 4]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 1
jmp 0x4ba4ec
push edx
push edx
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.004623e0
add esp, 0x10
test eax, eax
je 0x4ba6e4
jmp 0x4ba570
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4bab06
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4ba570
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x14]
call fcn.004b8b50
mov esi, dword [ebp - 0x20]
mov edi, eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4ba91d
test edi, edi
sete al
and eax, 0xff
mov edi, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4ba570
cmp edi, 1
je 0x4ba97e
test edi, edi
jns 0x4ba570
mov eax, dword [ebx + 0x18]
mov dword [ebx], 0xfffffffc
jmp 0x4ba57f
mov eax, dword [ebx + 0x50]
test eax, eax
jne 0x4baad0
sub esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call fcn.004622d0
cld
mov dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0x54]
mov esi, dword [ebx + 0x2c]
mov ecx, dword [eax + 0x14]
add esp, 0x10
shl ecx, 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebx + 8]
mov edx, dword [esi + 4]
jmp 0x4ba864
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
test ecx, ecx
js 0x4ba99e
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0x2c]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + ecx*8 + 4]
cmp eax, dword [edx + ecx*4]
jle 0x4ba570
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0xc]
test eax, eax
jle 0x4ba7c6
mov esi, dword [edx + 0x10]
test esi, esi
jle 0x4ba7c6
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebx + 0x14]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 4]
mov edx, dword [eax + edx*4]
mov eax, dword [ebx + 0x18]
inc eax
mov dword [ebp - 0x38], edx
cmp dword [esi + 0x18], eax
jle 0x4ba9e7
mov ecx, dword [ebx + 0x34]
test ecx, ecx
jle 0x4bab2e
mov eax, ebx
call fcn.004b9d80
mov dword [ebx + 0x1c], 1
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebx + 0x1c]
cmp ecx, dword [esi + 0x10]
je 0x4baa7d
mov eax, dword [ebx + 0x38]
mov edx, eax
mov dword [ebp - 0x40], eax
inc edx
mov eax, dword [ebx + 0x44]
mov esi, dword [eax + edx*8]
mov eax, dword [eax + edx*8 + 4]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
test esi, esi
je 0x4baafb
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x38], edx
cmp ecx, dword [eax + 0xc]
jl 0x4baa54
mov edx, dword [ebp - 0x38]
mov eax, dword [ebx + 0x34]
mov esi, dword [ebx + 0x18]
mov edi, dword [ebx + 0x14]
mov dword [ebx + 0x18], 0xffffffff
mov dword [ebx + 0x14], edx
test eax, eax
jle 0x4baae2
mov eax, ebx
call fcn.004b9d80
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], edi
push eax
push eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.004623e0
mov edi, eax
mov eax, dword [ebx + 0x1c]
inc eax
add esp, 0x10
mov dword [ebx + 0x1c], eax
cmp edi, 1
je 0x4ba9ee
mov ecx, eax
mov esi, dword [ebp - 0x20]
cmp ecx, dword [esi + 0xc]
jl 0x4ba587
test edi, edi
jl 0x4ba587
je 0x4ba587
cmp edi, 1
jne 0x4ba922
jmp 0x4ba7c6
sub esp, 0xc
push eax
call dword [0x69a2d0]
add esp, 0x10
jmp 0x4ba5ac
sub esp, 0xc
mov esi, dword [ebp - 0x14]
mov eax, ebx
push esi
mov edx, dword [ebp - 0x10]
call fcn.004ba250
add esp, 0x10
jmp 0x4ba815
sub esp, 0xc
push eax
call dword [0x69a2d0]
add esp, 0x10
jmp 0x4ba943
sub esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.004ba250
add esp, 0x10
jmp 0x4baa47
mov edx, dword [ebp - 0x40]
mov dword [ebx + 0x38], edx
jmp 0x4baa7d
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x23
push 1
push str.epsilon_transition_left_at_runtime_n
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov eax, dword [ebx + 0x18]
mov dword [ebx], 0xfffffffe
jmp 0x4ba57f
sub esp, 0xc
mov edx, dword [ebp - 0x14]
mov eax, ebx
push edx
mov edx, dword [ebp - 0x10]
call fcn.004ba250
add esp, 0x10
jmp 0x4ba9e0