Function at 0x100339f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x28c
mov edi, edx
mov edx, dword [0x10237198]
mov ebx, eax
mov eax, dword [0x10234e38]
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp edx, dword [0x1024e488]
jge 0x10033ab5
mov eax, dword [0x1024e48c]
mov ecx, dword [eax + edx*4]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x10033a3d
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x10033a28
dec eax
push eax
push ecx
push dword [edi]
mov dword [esi], eax
call fcn.10061710
add esp, 0xc
mov edx, dword [edi]
mov eax, dword [esi]
mov ecx, dword [0x10237198]
inc ecx
push ecx
mov byte [eax + edx], 0
push 0x10237198
mov dword [0x10237198], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [edi]
mov eax, dword [esi]
cmp byte [edx], 0x20
jne 0x10033a93
test eax, eax
jle 0x10033aaf
inc edx
dec eax
cmp byte [edx], 0x20
jne 0x10033a8f
test eax, eax
jle 0x10034825
inc edx
dec eax
cmp byte [edx], 0x20
je 0x10033a80
mov dword [edi], edx
mov dword [esi], eax
test eax, eax
jle 0x10033aaf
movsx ecx, byte [eax + edx - 1]
test ecx, 0xffffffdf
jne 0x100344dc
dec eax
mov dword [esi], eax
test eax, eax
jg 0x10033a97
jne 0x100344dc
cmp dword [0x1024c380], 0
je 0x10033b49
cmp dword [0x102372a0], 0
je 0x1003450b
mov eax, dword [0x10237310]
push dword [ebx + 0x118]
push str.Open:_Select_File_for_Unit
push str._s_d
lea ebx, [ebp - 0x60]
push ebx
call eax
add esp, 0x10
mov eax, dword [edi]
push ebx
push 0x104
push eax
call fcn.10066b20
add esp, 0xc
test eax, eax
je 0x10033b27
mov ecx, dword [edi]
cmp byte [ecx], 0
je 0x10033b27
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x10033b20
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x10033b0b
dec eax
mov dword [esi], eax
jmp 0x100344be
push 0x2134
push str.File_Open_Error
push str.A_File_Must_be_Selected_r_rTerminate_Program_
call fcn.10066b20
add esp, 0xc
cmp eax, 6
je 0x100344fa
jmp 0x10033aed
cmp dword [0x102372a0], 0
je 0x1003481b
mov eax, dword [0x10237310]
mov dword [ebp - 0x290], eax
push 0
push 0x20b
call fcn.10024170
push eax
push str._s_r_n
lea eax, [ebp - 0x160]
push eax
call dword [ebp - 0x290]
add esp, 0x14
cmp dword [0x102372a0], 0
je 0x10034811
mov eax, dword [0x10237310]
mov dword [ebp - 0x28c], eax
lea ecx, [ebp - 0x160]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x10033bb8
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x10033ba3
dec eax
mov dword [ebp - 0x290], eax
push dword [ebx + 0x118]
push 1
push 0x20c
call fcn.10024170
push eax
mov eax, dword [ebp - 0x290]
push 0x102109c0
lea edx, [ebp + eax - 0x160]
push edx
call dword [ebp - 0x28c]
add esp, 0x18
lea ecx, [ebp - 0x160]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x10033c0a
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x10033bf5
dec eax
mov dword [ebp - 0x164], eax
cmp dword [ebx + 0x118], 6
je 0x10033c65
push 4
lea eax, [ebp - 0x1b4]
push eax
lea edx, [ebp - 0x16c]
push edx
push 6
call fcn.10025880
add esp, 0x10
test eax, eax
jne 0x10033c45
cmp dword [ebx + 0x118], 5
jne 0x10033c65
jmp 0x10033cd1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x10034515
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push 1
lea eax, [ebp - 0x194]
push eax
lea edx, [ebp - 0x168]
push edx
push 5
call fcn.10025880
mov dword [ebp - 0x290], eax
add esp, 0x10
cmp dword [ebp - 0x290], 0
je 0x10033cd1
cmp dword [ebx + 0x118], 6
je 0x10033cab
mov eax, dword [ebp - 0x16c]
push dword [eax + 0x118]
call fcn.10026c60
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x10034515
mov eax, dword [ebp - 0x290]
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
lea eax, [ebp - 0x170]
push eax
push 1
push 0x1a8
call fcn.10025750
add esp, 0xc
test eax, eax
je 0x10033d0b
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x10034515
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
lea eax, [ebp - 0x174]
push eax
push 1
push 0x1a8
call fcn.10025750
add esp, 0xc
test eax, eax
je 0x10033d45
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x10034515
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push 0x1a8
push 0
push dword [ebp - 0x170]
call fcn.10061620
push 0x1a8
push 0
push dword [ebp - 0x174]
call fcn.10061620
push 0xd0
push 0
lea eax, [ebp - 0x290]
push eax
call fcn.10061620
add esp, 0x24
mov eax, dword [ebp - 0x170]
mov dword [eax + 0x118], 6
mov eax, dword [ebp - 0x170]
movzx ecx, byte [ebx + 0x190]
and ecx, 1
movzx edx, byte [eax + 0x190]
and edx, 0xfffffffe
or edx, ecx
mov byte [eax + 0x190], dl
mov ecx, dword [ebp - 0x170]
movzx edx, byte [ebx + 0x190]
and edx, 2
movzx eax, byte [ecx + 0x190]
and eax, 0xfffffffd
or eax, edx
mov byte [ecx + 0x190], al
mov edx, dword [ebp - 0x170]
movzx eax, byte [ebx + 0x190]
and eax, 4
movzx ecx, byte [edx + 0x190]
and ecx, 0xfffffffb
or ecx, eax
mov byte [edx + 0x190], cl
mov edx, dword [ebp - 0x170]
movzx ecx, byte [ebx + 0x190]
and ecx, 8
movzx eax, byte [edx + 0x190]
and eax, 0xfffffff7
or eax, ecx
mov byte [edx + 0x190], al
mov ecx, dword [ebp - 0x170]
movzx eax, byte [ebx + 0x190]
and eax, 0x20
movzx edx, byte [ecx + 0x190]
and edx, 0xffffffdf
or edx, eax
mov byte [ecx + 0x190], dl
mov ecx, dword [ebp - 0x170]
movzx edx, byte [ebx + 0x199]
and edx, 4
movzx eax, byte [ecx + 0x199]
and eax, 0xfffffffb
or eax, edx
mov byte [ecx + 0x199], al
mov edx, dword [ebp - 0x170]
movzx eax, byte [ebx + 0x199]
and eax, 8
movzx ecx, byte [edx + 0x199]
and ecx, 0xfffffff7
or ecx, eax
mov byte [edx + 0x199], cl
mov edx, dword [ebp - 0x170]
movzx ecx, byte [ebx + 0x190]
and ecx, 0x40
movzx eax, byte [edx + 0x190]
and eax, 0xffffffbf
or eax, ecx
mov byte [edx + 0x190], al
mov ecx, dword [ebp - 0x170]
movzx eax, byte [ebx + 0x190]
and eax, 0xffffff80
movzx edx, byte [ecx + 0x190]
and edx, 0x7f
or edx, eax
mov byte [ecx + 0x190], dl
mov ecx, dword [ebp - 0x170]
movzx edx, byte [ebx + 0x190]
and edx, 0x10
movzx eax, byte [ecx + 0x190]
and eax, 0xffffffef
or eax, edx
mov byte [ecx + 0x190], al
mov ecx, str.CONOUT_
mov eax, 1
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x234], 4
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x264], ecx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x10033f20
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x10033f0b
dec eax
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x290]
mov edx, dword [ebp - 0x170]
call fcn.1003484c
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0
je 0x10033fbf
push dword [ebp - 0x170]
call fcn.10025800
push dword [ebp - 0x174]
call fcn.10025800
add esp, 8
cmp dword [ebx + 0x118], 6
je 0x10033f85
mov eax, dword [ebp - 0x16c]
push dword [eax + 0x118]
call fcn.10026c60
add esp, 4
cmp dword [ebx + 0x118], 5
je 0x10033f99
mov eax, dword [ebp - 0x168]
push dword [eax + 0x118]
call fcn.10026c60
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x10034515
mov eax, dword [ebp - 0x1c0]
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x174]
mov dword [eax + 0x118], 5
mov eax, dword [ebp - 0x174]
movzx ecx, byte [ebx + 0x190]
and ecx, 1
movzx edx, byte [eax + 0x190]
and edx, 0xfffffffe
or edx, ecx
mov byte [eax + 0x190], dl
mov ecx, dword [ebp - 0x174]
movzx edx, byte [ebx + 0x190]
and edx, 2
movzx eax, byte [ecx + 0x190]
and eax, 0xfffffffd
or eax, edx
mov byte [ecx + 0x190], al
mov edx, dword [ebp - 0x174]
movzx eax, byte [ebx + 0x190]
and eax, 4
movzx ecx, byte [edx + 0x190]
and ecx, 0xfffffffb
or ecx, eax
mov byte [edx + 0x190], cl
mov edx, dword [ebp - 0x174]
movzx ecx, byte [ebx + 0x190]
and ecx, 8
movzx eax, byte [edx + 0x190]
and eax, 0xfffffff7
or eax, ecx
mov byte [edx + 0x190], al
mov ecx, dword [ebp - 0x174]
movzx eax, byte [ebx + 0x190]
and eax, 0x20
movzx edx, byte [ecx + 0x190]
and edx, 0xffffffdf
or edx, eax
mov byte [ecx + 0x190], dl
mov ecx, dword [ebp - 0x174]
movzx edx, byte [ebx + 0x199]
and edx, 4
movzx eax, byte [ecx + 0x199]
and eax, 0xfffffffb
or eax, edx
mov byte [ecx + 0x199], al
mov edx, dword [ebp - 0x174]
movzx eax, byte [ebx + 0x199]
and eax, 8
movzx ecx, byte [edx + 0x199]
and ecx, 0xfffffff7
or ecx, eax
mov byte [edx + 0x199], cl
mov edx, dword [ebp - 0x174]
movzx ecx, byte [ebx + 0x190]
and ecx, 0x40
movzx eax, byte [edx + 0x190]
and eax, 0xffffffbf
or eax, ecx
mov byte [edx + 0x190], al
mov ecx, dword [ebp - 0x174]
movzx eax, byte [ebx + 0x190]
and eax, 0xffffff80
movzx edx, byte [ecx + 0x190]
and edx, 0x7f
or edx, eax
mov byte [ecx + 0x190], dl
mov ecx, dword [ebp - 0x174]
movzx edx, byte [ebx + 0x190]
and edx, 0x10
movzx eax, byte [ecx + 0x190]
and eax, 0xffffffef
or eax, edx
mov byte [ecx + 0x190], al
mov ecx, str.CONIN_
mov dword [ebp - 0x264], ecx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x10034145
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x10034130
dec eax
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x290]
mov edx, dword [ebp - 0x174]
mov dword [eax + 0x10], 0
call fcn.1003484c
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0
jne 0x1003478b
mov eax, dword [ebp - 0x170]
mov byte [eax + 0x17e], 3
mov edx, dword [ebp - 0x170]
or byte [edx + 0x195], 0x40
cmp dword [esi], 0
jne 0x10034451
mov dword [ebp - 0x1b8], ebx
push 0
mov ebx, dword [ebp - 0x170]
push ebx
call fcn.1003ae70
add esp, 8
test eax, eax
jne 0x100346cf
movsx edx, byte [ebx + 0x17c]
cmp edx, 8
ja 0x100342e9
movzx eax, byte [edx + 0x10214aac]
add eax, 0x100341d7
notrack jmp eax
push 0x18b1
push str.for_nt_open_proc.c
push 2
push 8
call fcn.10022aa0
add esp, 0x10
movzx eax, byte [ebx + 0x190]
mov ecx, dword [ebx + 0x4c]
test al, 4
je 0x10034328
test byte [ebx + 0x192], 0x40
je 0x10034328
test byte [ebx + 0x193], 8
je 0x10034328
cmp byte [ebx + 0x17c], 1
je 0x10034373
movsx eax, byte [ebx + 0x17e]
cmp eax, 2
jne 0x1003434f
movsx eax, byte [ebx + 0x17c]
cmp eax, 7
je 0x10034373
cmp eax, 6
je 0x10034373
cmp eax, 8
je 0x10034373
dec dword [ebx + 0x54]
jmp 0x10034373
cmp eax, 1
jne 0x10034373
movsx eax, byte [ebx + 0x17c]
cmp eax, 7
je 0x1003436d
cmp eax, 6
je 0x1003436d
cmp eax, 8
je 0x1003436d
dec dword [ebx + 0x54]
add ecx, 5
mov dword [ebx + 0x4c], ecx
push dword [ebp - 0x164]
mov dword [ebx + 0x58], ecx
lea eax, [ebp - 0x160]
mov dword [ebx + 0x5c], 0
mov edx, dword [eax - 0x10]
push eax
push dword [edx + 0x4c]
call fcn.10061710
mov edx, dword [ebp - 0x170]
mov eax, dword [ebp - 0x164]
add dword [edx + 0x4c], eax
push dword [ebp - 0x170]
call fcn.10039a30
add esp, 0x10
test eax, eax
jne 0x1003463d
xor eax, eax
push eax
push eax
push dword [ebp - 0x174]
call fcn.1003b5a0
add esp, 0xc
test eax, eax
jne 0x100345a6
mov edx, dword [ebp - 0x174]
mov ebx, dword [edx + 0x54]
sub ebx, dword [edx + 0x4c]
push ebx
push dword [edx + 0x4c]
push dword [edi]
call fcn.10061710
add esp, 0xc
mov eax, dword [edi]
mov byte [eax + ebx], 0
cmp byte [eax], 0x20
jne 0x10034419
test ebx, ebx
jle 0x10034599
inc eax
dec ebx
cmp byte [eax], 0x20
jne 0x10034417
test ebx, ebx
jle 0x1003458a
inc eax
dec ebx
cmp byte [eax], 0x20
je 0x10034408
mov dword [edi], eax
test ebx, ebx
jle 0x10034599
movsx edx, byte [ebx + eax - 1]
test edx, 0xffffffdf
jne 0x1003457b
dec ebx
test ebx, ebx
jg 0x10034421
lea esi, [esi]
lea edi, [edi]
mov dword [esi], ebx
je 0x1003419f
mov ebx, dword [ebp - 0x1b8]
push 0
push dword [ebp - 0x170]
call fcn.1001cba0
push 0
push dword [ebp - 0x174]
call fcn.1001cba0
push dword [ebp - 0x170]
call fcn.10025800
push dword [ebp - 0x174]
call fcn.10025800
add esp, 0x18
cmp dword [ebx + 0x118], 6
je 0x100344aa
mov eax, dword [ebp - 0x16c]
push dword [eax + 0x118]
call fcn.10026c60
add esp, 4
cmp dword [ebx + 0x118], 5
je 0x100344be
mov eax, dword [ebp - 0x168]
push dword [eax + 0x118]
call fcn.10026c60
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x10034515
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x10034515
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push 1
call fcn.10066b20
add esp, 4
push 1
call fcn.101bb343
call fcn.10061c60
jmp 0x10033acf
call fcn.101a6152
mov eax, 0x2c
push eax
movzx edx, byte [ebx + 0x194]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ebx
call fcn.1002c750
add esp, 0x14
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x10034515
jmp 0x10033c5d
mov eax, ebx
mov ebx, dword [ebp - 0x1b8]
mov dword [esi], eax
jmp 0x10034451
mov dword [edi], eax
mov dword [esi], ebx
je 0x1003419f
jmp 0x1003444b
mov dword [esi], ebx
je 0x1003419f
jmp 0x1003444b
push 0
push dword [ebp - 0x170]
mov esi, eax
mov ebx, dword [ebp - 0x1b8]
call fcn.1001cba0
push 0
push dword [ebp - 0x174]
call fcn.1001cba0
push dword [ebp - 0x170]
call fcn.10025800
push dword [ebp - 0x174]
call fcn.10025800
add esp, 0x18
cmp dword [ebx + 0x118], 6
je 0x10034607
mov edx, dword [ebp - 0x16c]
push dword [edx + 0x118]
call fcn.10026c60
add esp, 4
cmp dword [ebx + 0x118], 5
je 0x1003461b
mov edx, dword [ebp - 0x168]
push dword [edx + 0x118]
call fcn.10026c60
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x10034515
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push 0
push dword [ebp - 0x170]
mov esi, eax
mov ebx, dword [ebp - 0x1b8]
call fcn.1001cba0
push 0
push dword [ebp - 0x174]
call fcn.1001cba0
push dword [ebp - 0x170]
call fcn.10025800
push dword [ebp - 0x174]
call fcn.10025800
add esp, 0x18
cmp dword [ebx + 0x118], 6
je 0x1003469e
mov edx, dword [ebp - 0x16c]
push dword [edx + 0x118]
call fcn.10026c60
add esp, 4
cmp dword [ebx + 0x118], 5
je 0x100346b2
mov edx, dword [ebp - 0x168]
push dword [edx + 0x118]
call fcn.10026c60
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x10034515
jmp 0x10034633
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1003475c
test byte [eax + 0x44], 2
je 0x10034722
mov edx, 0x26
mov dword [eax + 0x38], edx
mov eax, dword [ebx + 0x20]
mov dword [eax + 0x3c], edx
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x100346fd
xor edx, edx
mov dword [eax + 4], edx
mov dword [ebx + 0x78], edx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x10034515
mov eax, 0x26
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, 0x26
push eax
movzx edx, byte [ebx + 0x194]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ebx
call fcn.1002c750
add esp, 0x14
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x10034515
jmp 0x10033c5d
push ebx
mov eax, 0x26
push eax
push eax
push 1
call fcn.10021950
add esp, 0x10
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x10034515
jmp 0x10033c5d
push 0
push dword [ebp - 0x170]
call fcn.1001cba0
push dword [ebp - 0x170]
call fcn.10025800
push dword [ebp - 0x174]
call fcn.10025800
add esp, 0x10
cmp dword [ebx + 0x118], 6
je 0x100347d7
mov eax, dword [ebp - 0x16c]
push dword [eax + 0x118]
call fcn.10026c60
add esp, 4
cmp dword [ebx + 0x118], 5
je 0x100347eb
mov eax, dword [ebp - 0x168]
push dword [eax + 0x118]
call fcn.10026c60
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x10034515
mov eax, dword [ebp - 0x1c0]
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call fcn.10061c60
jmp 0x10033b90
call fcn.10061c60
jmp 0x10033b56
mov dword [edi], edx
mov dword [esi], eax
jne 0x100344dc
jmp 0x10033ab5