Function at 0x1002a010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [esi + 0x28], 0
mov dword [esi + 0x5c], eax
jne case.0x1002a1d9.8
cmp dword [esi + 0x2c], 0
mov dword [esi + 0x28], 1
jne 0x1002a03d
mov dword [esi + 0x2c], 1
cmp dword [esi + 4], 0
jne 0x1002a050
push 0
call fcn.10038193
add esp, 4
mov dword [esi + 4], eax
cmp dword [esi + 8], 0
jne 0x1002a063
push 1
call fcn.10038193
add esp, 4
mov dword [esi + 8], eax
mov edi, dword [esi + 0x14]
mov edx, dword [esi + 0xc]
test edi, edi
je 0x1002a072
mov eax, dword [edi + edx*4]
jmp 0x1002a074
xor eax, eax
test eax, eax
jne 0x1002a09e
push esi
call fcn.10029f50
push esi
push 0x4000
push dword [esi + 4]
call fcn.10029d70
mov edx, dword [esi + 0xc]
add esp, 0x10
mov ecx, dword [esi + 0x14]
mov dword [ecx + edx*4], eax
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 0x14]
mov eax, dword [edi + edx*4]
mov eax, dword [eax + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + edx*4]
mov ecx, dword [eax + 8]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x50], ecx
mov eax, dword [edi + edx*4]
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 + 0xc], edi
mov byte [edi], al
mov ecx, dword [esi + 0x2c]
mov dword [ebp + 8], edi
movzx eax, byte [edi]
lea edx, [ecx + ecx]
cmp word [edx + 0x10068930], 0
mov bl, byte [eax + 0x10068978]
je 0x1002a0ed
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], edi
movzx eax, word [edx + 0x10068a88]
movzx edi, bl
add eax, edi
movsx eax, word [eax*2 + 0x10068b98]
cmp eax, ecx
je 0x1002a13d
nop word [eax + eax]
movsx ecx, word [edx + 0x10068ad8]
cmp ecx, 0x22
jl 0x1002a122
mov bl, byte [edi + 0x10068a78]
lea edx, [ecx + ecx]
movzx edi, bl
movzx eax, word [edx + 0x10068a88]
add eax, edi
movsx eax, word [eax*2 + 0x10068b98]
cmp eax, ecx
jne 0x1002a110
movzx ecx, word [ecx*2 + 0x10068a88]
mov edi, dword [ebp + 8]
movzx eax, bl
inc edi
add ecx, eax
mov dword [ebp + 8], edi
movzx ecx, word [ecx*2 + 0x10068b28]
cmp ecx, 0x21
jne 0x1002a0d1
mov edx, dword [ebp + 0xc]
mov ebx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
nop dword [eax + eax]
movsx edi, word [eax*2 + 0x10068930]
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, 0x13
je 0x1002a1d0
cmp dword [edi*4 + 0x10068c08], 0
je 0x1002a1d0
xor edx, edx
cmp dword [esi + 0x20], edx
jbe 0x1002a1d0
mov eax, dword [esi + 0x50]
cmp byte [edx + eax], 0xa
jne 0x1002a1c8
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 0x1002a1a3
nop
cmp edi, 0x16
ja case.default.0x1002a1d9
jmp dword [edi*4 + 0x1002a4bc]
mov eax, ebx
sub eax, dword [esi + 0x50]
mov dword [ebp + 8], eax
mov al, byte [esi + 0x18]
mov byte [ebx], al
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
mov edi, dword [ecx + eax*4]
lea edx, [ecx + eax*4]
cmp dword [edi + 0x2c], 0
jne 0x1002a222
mov eax, dword [edi + 0x10]
mov dword [esi + 0x1c], eax
mov ecx, dword [edx]
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 eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + eax*4]
push esi
mov eax, dword [eax + 4]
add eax, dword [esi + 0x1c]
cmp dword [esi + 0x24], eax
jbe 0x1002a295
call fcn.1002a710
add esp, 4
sub eax, 0
je 0x1002a350
sub eax, 1
jne 0x1002a263
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, 0x14
jmp 0x1002a1d0
sub eax, 1
jne case.0x1002a1d9.8
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.1002aa60
mov edx, dword [esi + 0x50]
add esp, 4
mov ebx, dword [esi + 0x24]
mov dword [ebp + 0xc], edx
jmp 0x1002a170
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x50]
dec ecx
add eax, ecx
mov dword [esi + 0x24], eax
call fcn.1002aa60
mov edx, eax
add esp, 4
mov bl, 1
lea edi, [edx + edx]
cmp word [edi + 0x10068930], 0
je 0x1002a2c3
mov eax, dword [esi + 0x24]
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], eax
movzx eax, word [edi + 0x10068a88]
movsx eax, word [eax*2 + 0x10068b9a]
cmp eax, edx
je 0x1002a310
nop word [eax + eax]
movsx edx, word [edi + 0x10068ad8]
cmp edx, 0x22
jl 0x1002a2f5
movzx eax, bl
mov bl, byte [eax + 0x10068a78]
lea edi, [edx + edx]
movzx eax, bl
movzx ecx, word [edi + 0x10068a88]
add ecx, eax
movsx eax, word [ecx*2 + 0x10068b98]
cmp eax, edx
jne 0x1002a2e0
movzx ecx, word [edx*2 + 0x10068a88]
mov edx, dword [esi + 0x50]
movzx eax, bl
add ecx, eax
mov dword [ebp + 0xc], edx
xor eax, eax
movzx ecx, word [ecx*2 + 0x10068b28]
cmp ecx, 0x21
cmove ecx, eax
test ecx, ecx
je 0x1002a165
inc dword [esi + 0x24]
mov edi, dword [esi + 0x24]
jmp 0x1002a0ce
mov al, byte [esi + 0x18]
mov byte [ebx], al
jmp 0x1002a162
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x50]
dec ecx
add eax, ecx
push esi
mov dword [esi + 0x24], eax
call fcn.1002aa60
mov edi, dword [esi + 0x24]
mov ecx, eax
mov eax, dword [esi + 0x50]
add esp, 4
mov dword [ebp + 0xc], eax
jmp 0x1002a0ce
mov dword [esi + 0x2c], 3
jmp case.0x1002a1d9.8
mov dword [esi + 0x2c], 1
jmp case.0x1002a1d9.8
push dword [esi + 8]
push 1
push dword [esi + 0x20]
push dword [esi + 0x50]
call fcn.10039537
add esp, 0x10
jmp case.0x1002a1d9.8
push dword [esi + 0x50]
call fcn.100149b0
mov ecx, dword [esi + 0x5c]
add esp, 4
pop edi
mov dword [ecx], eax
mov eax, 0x102
pop esi
mov dword [ecx + 4], edx
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x50]
mov byte [eax + 1], 0x30
push dword [esi + 0x50]
call fcn.100149b0
mov ecx, dword [esi + 0x5c]
add esp, 4
or eax, 0xf000
pop edi
mov dword [ecx], eax
mov eax, 0x103
pop esi
mov dword [ecx + 4], edx
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x50]
mov byte [eax], 0x30
push dword [esi + 0x50]
call fcn.100149b0
mov ecx, dword [esi + 0x5c]
add esp, 4
or eax, 0xf00
pop edi
mov dword [ecx], eax
mov eax, 0x103
pop esi
mov dword [ecx + 4], edx
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x5c]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, 0x103
pop ebp
ret
mov dword [esi + 0x2c], 5
mov eax, dword [esi + 0x50]
pop edi
pop esi
pop ebx
movsx eax, byte [eax]
pop ebp
ret
push dword [esi + 0x50]
call fcn.100432b6
mov ecx, dword [esi + 0x5c]
add esp, 4
cdq
pop edi
mov dword [ecx], eax
mov eax, 0x104
pop esi
mov dword [ecx + 4], edx
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x50]
pop edi
mov dword [esi + 0x2c], 1
pop esi
movsx eax, byte [eax]
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
jne case.0x1002a1d9.20
push 0x100
push str.invalid_character_in_hex_string_jump
jmp 0x1002a497
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
jne case.0x1002a1d9.20
push 0x100
push str.invalid_character_in_hex_string
mov dword [eax + 4], 0xa
add eax, 8
push eax
call fcn.10014c00
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push str.fatal_flex_scanner_internal_error__no_action_found
push esi
call fcn.10028b10
inc esi
mov dword [-1549463550], eax
add dl, byte [eax]
ret 0x2a3