Function at 0x4aa290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [esi + 0x28], 0
mov dword [esi + 0x5c], eax
jne 0x4aa337
cmp dword [esi + 0x2c], 0
mov dword [esi + 0x28], 1
jne 0x4aa2c0
mov dword [esi + 0x2c], 1
cmp dword [esi + 4], 0
jne 0x4aa2ce
call fcn.004bdd06
mov dword [esi + 4], eax
cmp dword [esi + 8], 0
jne 0x4aa2df
call fcn.004bdd06
add eax, 0x20
mov dword [esi + 8], eax
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4aa2ef
mov eax, dword [esi + 0xc]
cmp dword [ecx + eax*4], 0
jne 0x4aa30f
push esi
call fcn.004aa1b0
push esi
push 0x4000
push dword [esi + 4]
call fcn.004a9eb0
mov edx, dword [esi + 0xc]
add esp, 0x10
mov ecx, dword [esi + 0x14]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea edx, [eax + ecx*4]
mov eax, dword [edx]
mov eax, dword [eax + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x50], ecx
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [esi + 4], eax
mov al, byte [ecx]
mov byte [esi + 0x18], al
mov edi, dword [esi + 0x24]
mov al, byte [esi + 0x18]
mov dword [ebp + 8], edi
mov byte [edi], al
mov ecx, dword [esi + 0x2c]
mov dword [ebp - 4], edi
jmp 0x4aa350
movzx eax, byte [edi]
lea edx, [ecx + ecx]
cmp word [edx + 0x4e9720], 0
mov bl, byte [eax + 0x4e9780]
je 0x4aa36c
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], edi
movzx eax, word [edx + 0x4e9898]
movzx edi, bl
add eax, edi
movsx eax, word [eax*2 + 0x4e9a48]
cmp eax, ecx
je 0x4aa3b1
movsx ecx, word [edx + 0x4e9900]
cmp ecx, 0x2d
jl 0x4aa396
mov bl, byte [edi + 0x4e9880]
lea edx, [ecx + ecx]
movzx edi, bl
movzx eax, word [edx + 0x4e9898]
add eax, edi
movsx eax, word [eax*2 + 0x4e9a48]
cmp eax, ecx
jne 0x4aa384
movzx ecx, word [ecx*2 + 0x4e9898]
mov edi, dword [ebp - 4]
movzx eax, bl
inc edi
add ecx, eax
mov dword [ebp - 4], edi
movzx ecx, word [ecx*2 + 0x4e9968]
cmp ecx, 0x2c
jne 0x4aa350
mov edx, dword [ebp + 8]
mov ebx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
nop
movsx edi, word [eax*2 + 0x4e9720]
mov eax, ebx
sub eax, edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x20], eax
mov al, byte [ebx]
mov byte [esi + 0x18], al
mov byte [ebx], 0
mov dword [esi + 0x24], ebx
cmp edi, 0x1e
je 0x4aa440
cmp dword [edi*4 + 0x4e9b28], 0
je 0x4aa440
xor edx, edx
cmp dword [esi + 0x20], edx
jbe 0x4aa440
mov eax, dword [esi + 0x50]
cmp byte [edx + eax], 0xa
jne 0x4aa438
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ecx*4]
inc dword [eax + 0x20]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x24], 0
inc edx
cmp edx, dword [esi + 0x20]
jb 0x4aa413
mov edi, edi
cmp edi, 0x20
ja case.default.0x4aa449
jmp dword [edi*4 + 0x4aab9c]
mov al, byte [esi + 0x18]
mov edi, ebx
sub edi, dword [esi + 0x50]
mov byte [ebx], al
dec edi
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
lea ecx, [eax + ecx*4]
mov eax, dword [ecx]
cmp dword [eax + 0x2c], 0
jne 0x4aa489
mov eax, dword [eax + 0x10]
mov dword [esi + 0x1c], eax
mov ecx, dword [ecx]
mov eax, dword [esi + 4]
mov dword [ecx], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x2c], 1
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
push esi
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 4]
add eax, dword [esi + 0x1c]
cmp dword [esi + 0x24], eax
jbe 0x4aa4fe
call fcn.004aafa0
add esp, 4
sub eax, 0
je 0x4aa53a
dec eax
jne 0x4aa4ce
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x50]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x2c]
dec eax
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, 0x1f
jmp 0x4aa440
dec eax
jne 0x4aa337
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
push esi
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 4]
add eax, dword [esi + 0x1c]
mov dword [esi + 0x24], eax
call fcn.004ab2c0
mov edx, dword [esi + 0x50]
add esp, 4
mov ebx, dword [esi + 0x24]
mov dword [ebp + 8], edx
jmp 0x4aa3e0
mov eax, dword [esi + 0x50]
add eax, edi
mov dword [esi + 0x24], eax
call fcn.004ab2c0
push esi
push eax
call fcn.004ab380
mov edx, dword [esi + 0x50]
mov ecx, eax
add esp, 0xc
mov dword [ebp + 8], edx
test ecx, ecx
je 0x4aa3d9
inc dword [esi + 0x24]
mov edi, dword [esi + 0x24]
jmp 0x4aa345
mov al, byte [esi + 0x18]
mov byte [ebx], al
jmp 0x4aa3d6
mov eax, dword [esi + 0x50]
add eax, edi
push esi
mov dword [esi + 0x24], eax
call fcn.004ab2c0
mov edi, dword [esi + 0x24]
mov ecx, eax
mov eax, dword [esi + 0x50]
add esp, 4
mov dword [ebp + 8], eax
jmp 0x4aa345
mov edx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [esi + 0x2c], 3
movdqu xmmword [edx + 4], xmm0
movdqu xmmword [edx + 0x14], xmm0
mov dword [edx], 1
jmp 0x4aa337
mov edx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [esi + 0x2c], 3
movdqu xmmword [edx + 4], xmm0
movdqu xmmword [edx + 0x14], xmm0
mov dword [edx], 1
or byte [edx + 0xf], 0x20
jmp 0x4aa337
mov edx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [esi + 0x2c], 3
movdqu xmmword [edx + 4], xmm0
movdqu xmmword [edx + 0x14], xmm0
mov dword [edx], 0
or byte [edx + 0xf], 0x20
jmp 0x4aa337
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [esi + 0x2c], 3
movdqu xmmword [eax + 4], xmm0
movdqu xmmword [eax + 0x14], xmm0
mov dword [eax], 0
jmp 0x4aa337
mov ecx, dword [esi + 0x50]
mov bl, byte [ecx]
mov al, byte [ecx + 2]
cmp bl, 0x5c
jne 0x4aa614
push ecx
call fcn.004a9de0
mov bl, al
add esp, 4
mov eax, dword [esi + 0x50]
cmp byte [eax + 1], 0x78
jne 0x4aa611
mov al, byte [eax + 5]
jmp 0x4aa614
mov al, byte [eax + 3]
cmp al, 0x5c
jne 0x4aa667
push esi
mov byte [ebp - 8], al
call fcn.004ab420
add esp, 4
mov byte [ebp - 7], al
cmp al, 0xff
je 0x4aaab6
cmp al, 0x78
jne 0x4aa65b
push esi
call fcn.004ab420
add esp, 4
mov byte [ebp - 6], al
cmp al, 0xff
je 0x4aaab6
push esi
call fcn.004ab420
add esp, 4
mov byte [ebp - 5], al
cmp al, 0xff
je 0x4aaab6
lea eax, [ebp - 8]
push eax
call fcn.004a9de0
add esp, 4
cmp al, bl
jb 0x4aa88e
movzx ecx, bl
movzx eax, al
cmp cx, ax
ja 0x4aa337
mov esi, dword [ebp + 0x10]
sub eax, ecx
inc eax
mov edi, ecx
movzx ebx, ax
lea esp, [esp]
mov edx, edi
mov ecx, edi
shr edx, 3
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x4aa6a4
dec ecx
or ecx, 0xfffffff8
inc ecx
mov al, 1
inc edi
shl al, cl
or byte [edx + esi + 4], al
dec ebx
jne 0x4aa690
mov esi, dword [ebp + 0xc]
jmp 0x4aa337
mov edx, dword [ebp + 0x10]
xor ecx, ecx
lea ecx, [ecx]
mov al, byte [ecx + 0x537488]
or byte [edx + ecx + 4], al
mov al, byte [ecx + 0x537489]
or byte [edx + ecx + 5], al
mov al, byte [ecx + 0x53748a]
or byte [edx + ecx + 6], al
mov al, byte [ecx + 0x53748b]
or byte [edx + ecx + 7], al
add ecx, 4
cmp ecx, 0x20
jl 0x4aa6c0
jmp 0x4aa337
mov edx, dword [ebp + 0x10]
xor ecx, ecx
lea ebx, [ebx]
mov al, byte [ecx + 0x537488]
not al
or byte [edx + ecx + 4], al
mov al, byte [ecx + 0x537489]
not al
or byte [edx + ecx + 5], al
mov al, byte [ecx + 0x53748a]
not al
or byte [edx + ecx + 6], al
mov al, byte [ecx + 0x53748b]
not al
or byte [edx + ecx + 7], al
add ecx, 4
cmp ecx, 0x20
jl 0x4aa700
jmp 0x4aa337
mov edx, dword [ebp + 0x10]
or byte [edx + 8], 1
or byte [edx + 5], 2
jmp 0x4aa337
mov esi, dword [ebp + 0x10]
xor eax, eax
cmp eax, 4
jne 0x4aa75d
or byte [esi + 8], 0xfe
jmp 0x4aa76d
cmp eax, 1
jne 0x4aa768
or byte [esi + 5], 0xfd
jmp 0x4aa76d
mov byte [esi + eax + 4], 0xff
inc eax
cmp eax, 0x20
jl 0x4aa752
mov esi, dword [ebp + 0xc]
jmp 0x4aa337
mov esi, dword [ebp + 0x10]
mov edi, 0x30
lea ebx, [edi - 0x26]
mov eax, edi
mov ecx, edi
cdq
and edx, 7
add edx, eax
sar edx, 3
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x4aa7a0
dec ecx
or ecx, 0xfffffff8
inc ecx
mov al, 1
inc edi
shl al, cl
or byte [edx + esi + 4], al
dec ebx
jne 0x4aa786
mov esi, dword [ebp + 0xc]
jmp 0x4aa337
mov esi, dword [ebp + 0x10]
xor eax, eax
lea esp, [esp]
cmp eax, 6
je 0x4aa7d5
cmp eax, 7
jne 0x4aa7d0
or byte [esi + 0xb], 0xfc
jmp 0x4aa7d5
mov byte [eax + esi + 4], 0xff
inc eax
cmp eax, 0x20
jl 0x4aa7c0
mov esi, dword [ebp + 0xc]
jmp 0x4aa337
push esi
mov byte [ebp - 0xc], 0x5c
call fcn.004ab420
add esp, 4
mov byte [ebp - 0xb], al
cmp al, 0xff
je 0x4aaab6
cmp al, 0x78
jne 0x4aa827
push esi
call fcn.004ab420
add esp, 4
mov byte [ebp - 0xa], al
cmp al, 0xff
je 0x4aaab6
push esi
call fcn.004ab420
add esp, 4
mov byte [ebp - 9], al
cmp al, 0xff
je 0x4aaab6
lea eax, [ebp - 0xc]
push eax
call fcn.004a9de0
movzx ecx, al
add esp, 4
mov eax, ecx
shr eax, 3
mov edx, dword [ebp + 0x10]
add edx, eax
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x4aa84d
dec ecx
or ecx, 0xfffffff8
inc ecx
mov al, 1
shl al, cl
or byte [edx + 4], al
jmp 0x4aa337
mov eax, dword [esi + 0x50]
mov al, byte [eax]
cmp al, 0x20
jl 0x4aa8bd
cmp al, 0x7f
jge 0x4aa8bd
movsx ecx, al
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
jmp 0x4aa83b
push dword [esi + 8]
push 1
push dword [esi + 0x20]
push dword [esi + 0x50]
call fcn.004bdf3b
add esp, 0x10
jmp 0x4aa337
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x24], 0
jne case.0x4aa449.31
push 0x100
mov dword [eax + 0x24], 9
push str.bad_character_range
add eax, 0x28
push eax
call fcn.004a66f0
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x24], 0
jne case.0x4aa449.31
push 0x100
mov dword [eax + 0x24], 9
push str.non_ascii_character
jmp 0x4aa8a8
mov eax, dword [esi + 0x50]
inc eax
push eax
call fcn.004c03b6
push 0x2c
push dword [esi + 0x50]
mov edi, eax
call fcn.004bf050
mov edx, dword [esi + 0x50]
add esp, 0xc
mov ebx, eax
lea ecx, [edx + 1]
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x4aa900
sub edx, ecx
mov ecx, ebx
sub ecx, dword [esi + 0x50]
lea eax, [edx - 2]
cmp ecx, eax
jne 0x4aa93c
mov ecx, 0x7fff
cmp ecx, edi
jl 0x4aa975
test ecx, ecx
js 0x4aa975
test edi, edi
js 0x4aa975
mov eax, dword [esi + 0x5c]
shl ecx, 0x10
or ecx, edi
pop edi
pop esi
mov dword [eax], ecx
mov eax, 0x104
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 1]
push eax
call fcn.004c03b6
mov ecx, eax
add esp, 4
cmp ecx, 0x7fff
jle 0x4aa91a
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x24], 0
jne case.0x4aa449.31
push 0x100
mov dword [eax + 0x24], 9
push str.repeat_interval_too_large
jmp 0x4aa8a8
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x24], 0
jne case.0x4aa449.31
push 0x100
mov dword [eax + 0x24], 9
push str.bad_repeat_interval
jmp 0x4aa8a8
mov eax, dword [esi + 0x50]
inc eax
push eax
call fcn.004c03b6
add esp, 4
cmp eax, 0x7fff
jg 0x4aa952
mov ecx, eax
shl ecx, 0x10
or ecx, eax
mov eax, dword [esi + 0x5c]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov eax, 0x104
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x50]
pop edi
movsx ecx, byte [eax]
mov eax, dword [esi + 0x5c]
pop esi
pop ebx
mov dword [eax], ecx
mov eax, 0x102
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x106
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x107
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x108
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x109
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x10a
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x10b
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x10c
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x10d
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x24], 0
jne case.0x4aa449.31
push 0x100
mov dword [eax + 0x24], 9
push str.backreferences_are_not_allowed
jmp 0x4aa8a8
push esi
mov byte [ebp + 0xc], 0x5c
call fcn.004ab420
add esp, 4
mov byte [ebp + 0xd], al
cmp al, 0xff
je 0x4aaab6
cmp al, 0x78
jne 0x4aaa96
push esi
call fcn.004ab420
add esp, 4
mov byte [ebp + 0xe], al
cmp al, 0xff
je 0x4aaab6
push esi
call fcn.004ab420
add esp, 4
mov byte [ebp + 0xf], al
cmp al, 0xff
je 0x4aaab6
lea eax, [ebp + 0xc]
push eax
call fcn.004a9de0
add esp, 4
movzx ecx, al
mov eax, dword [esi + 0x5c]
pop edi
pop esi
mov dword [eax], ecx
mov eax, 0x102
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x24], 0
jne case.0x4aa449.31
push 0x100
mov dword [eax + 0x24], 9
push str.unexpected_end_of_buffer
jmp 0x4aa8a8
push 0x20
call fcn.004a0820
mov ecx, dword [esi + 0x5c]
add esp, 4
mov dword [ecx], eax
mov eax, dword [esi + 0x5c]
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax]
movdqu xmm0, xmmword [ecx + 4]
movdqu xmmword [eax], xmm0
movdqu xmm0, xmmword [ecx + 0x14]
movdqu xmmword [eax + 0x10], xmm0
cmp dword [ecx], 0
je 0x4aab3b
xor edx, edx
lea ebx, [ebx]
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax]
not byte [ecx + edx]
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax]
not byte [ecx + edx + 1]
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax]
not byte [ecx + edx + 2]
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax]
not byte [ecx + edx + 3]
add edx, 4
cmp edx, 0x20
jl 0x4aab10
pop edi
mov dword [esi + 0x2c], 1
mov eax, 0x105
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x24], 0
jne case.0x4aa449.31
push 0x100
mov dword [eax + 0x24], 9
push str.missing_terminating___for_character_class
jmp 0x4aa8a8
mov eax, dword [esi + 0x50]
mov al, byte [eax]
cmp al, 0x20
jl 0x4aa8bd
cmp al, 0x7f
jge 0x4aa8bd
pop edi
pop esi
movsx eax, al
pop ebx
mov esp, ebp
pop ebp
ret
push str.fatal_flex_scanner_internal_error__no_action_found
push esi
call fcn.004aa270
nop
xor byte [ebp - 0x5726ffb6], ah
dec edx
add byte [eax + 0x5b004aa9], bl
movsd dword es:[edi], dword [esi]
dec edx
add byte [ebp - 0x5b], bh
dec edx
add byte [ebx - 0x36ffb55b], ah
movsd dword es:[edi], dword [esi]
dec edx
add ah, al
test eax, 0xa9db004a
dec edx
add bh, ah
test eax, 0xa9f3004a
dec edx
add bh, bh
test eax, 0xaa0b004a
dec edx
add byte [edi], dl
stosb byte es:[edi], al
dec edx
add byte [ebx], ah
stosb byte es:[edi], al
dec edx
add byte [edi], ch
stosb byte es:[edi], al
dec edx
add byte [ebx], bh
stosb byte es:[edi], al
dec edx
add byte [esi - 0x56], bl
dec edx
add cl, bl
stosb byte es:[edi], al
dec edx
add bl, ch
movsd dword es:[edi], dword [esi]
dec edx
add byte [eax - 0xaffb55a], bh
cmpsb byte [esi], byte es:[edi]
dec edx
add byte [0x4d004aa7], bh
cmpsd dword [esi], dword es:[edi]
dec edx
add byte [ebx - 0x59], bh
dec edx
add byte [edi - 0x581cffb6], dh
dec edx
add byte [ecx - 0x58], bl
dec edx
add byte [ecx - 0x55], dh
dec edx
add byte [esi - 0x58], dh
dec edx
add byte [eax - 0x5c], dl
dec edx
add byte [eax + ebp*4 - 0x54b1ffb6], dh
dec edx
add byte [ebp - 0x75], dl
push ebp
mov ebp, esp