Function at 0x448690
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov dword [ebp - 0xc], ebx
mov ebx, edx
mov edx, dword [0x50ad78]
mov dword [ebp - 8], edi
mov edi, eax
mov dword [ebp - 4], esi
mov esi, ecx
cmp edx, dword [0x518658]
jge 0x44873c
mov eax, dword [0x51865c]
mov ecx, dword [eax + edx*4]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x4486d9
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x4486c4
dec eax
push eax
push ecx
push dword [ebx]
mov dword [esi], eax
call fcn.004cd9d0
add esp, 0xc
mov edx, dword [ebx]
mov eax, dword [esi]
mov byte [eax + edx], 0
mov ecx, dword [0x50ad78]
inc ecx
push ecx
mov dword [0x50ad78], ecx
push 0x50ad78
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [ebx]
mov eax, dword [esi]
cmp byte [edx], 0x20
jne 0x448720
test eax, eax
jle 0x448736
inc edx
dec eax
mov dword [ebx], edx
mov dword [esi], eax
cmp byte [edx], 0x20
je 0x448711
test eax, eax
jle 0x448736
test byte [eax + edx - 1], 0xdf
jne 0x448ffe
dec eax
mov dword [esi], eax
test eax, eax
jg 0x448724
jne 0x448ffe
cmp dword [0x518340], 0
je 0x4487d0
push dword [edi + 0x108]
push str.Open:_Select_File_for_Unit
push str._s_d
lea edx, [ebp - 0x238]
push edx
call fcn.0047c0e0
add esp, 0x10
lea edx, [ebp - 0x238]
mov eax, dword [ebx]
mov edi, edx
jmp 0x448776
mov eax, dword [ebx]
push edi
push 0x100
push eax
call fcn.004d2680
add esp, 0xc
test eax, eax
je 0x4487ae
mov ecx, dword [ebx]
cmp byte [ecx], 0
je 0x4487ae
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x4487a7
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x448792
dec eax
mov dword [esi], eax
jmp 0x448ffe
push 0x2134
push str.File_Open_Error
push str.A_File_Must_be_Selected_r_rTerminate_Program_
call fcn.004d2810
add esp, 0xc
cmp eax, 6
je 0x44900d
jmp 0x448774
push 0
push 0x20b
call fcn.0040c950
push eax
push str._s_r_n
lea edx, [ebp - 0x164]
push edx
call fcn.0047c0e0
add esp, 0x14
lea ecx, [ebp - 0x164]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x44880e
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x4487f9
dec eax
push dword [edi + 0x108]
push 1
mov edx, eax
push 0x20c
mov dword [ebp - 0x238], edx
call fcn.0040c950
mov edx, dword [ebp - 0x238]
mov ecx, eax
push ecx
push 0x4e6ce0
lea eax, [ebp - 0x164]
add edx, eax
push edx
call fcn.0047c0e0
add esp, 0x18
lea ecx, [ebp - 0x164]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x448864
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x44884f
dec eax
mov dword [ebp - 0x10], eax
cmp dword [edi + 0x108], 6
je 0x448891
push 4
lea eax, [ebp - 0x60]
push eax
lea edx, [ebp - 0x18]
push edx
push 6
call fcn.00432c10
add esp, 0x10
test eax, eax
jne 0x4488f8
cmp dword [edi + 0x108], 5
je 0x4488e1
push 1
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x14]
push edx
push 5
call fcn.00432c10
mov dword [ebp - 0x238], eax
add esp, 0x10
cmp dword [ebp - 0x238], 0
je 0x4488e1
cmp dword [edi + 0x108], 6
je 0x4488ce
mov eax, dword [ebp - 0x18]
push dword [eax + 0x108]
call fcn.004325f0
add esp, 4
mov eax, dword [ebp - 0x238]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
push eax
push 1
push 0x190
call fcn.00431e20
add esp, 0xc
test eax, eax
je 0x448905
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 1
push 0x190
call fcn.00431e20
add esp, 0xc
test eax, eax
je 0x448929
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push 0x190
push 0
push dword [ebp - 0x1c]
call fcn.004cda30
push 0x190
push 0
push dword [ebp - 0x20]
call fcn.004cda30
push 0xcc
push 0
lea eax, [ebp - 0x238]
push eax
call fcn.004cda30
add esp, 0x24
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [edi + 0x178]
and ecx, 1
mov dword [eax + 0x108], 6
mov eax, dword [ebp - 0x1c]
movzx edx, byte [eax + 0x178]
and edx, 0xfffffffe
or edx, ecx
mov byte [eax + 0x178], dl
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edi + 0x178]
and edx, 2
movzx eax, byte [ecx + 0x178]
and eax, 0xfffffffd
or eax, edx
mov byte [ecx + 0x178], al
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edi + 0x178]
and eax, 4
movzx ecx, byte [edx + 0x178]
and ecx, 0xfffffffb
or ecx, eax
mov byte [edx + 0x178], cl
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [edi + 0x178]
and ecx, 8
movzx eax, byte [edx + 0x178]
and eax, 0xfffffff7
or eax, ecx
mov byte [edx + 0x178], al
mov ecx, dword [ebp - 0x1c]
movzx eax, byte [edi + 0x178]
and eax, 0x20
movzx edx, byte [ecx + 0x178]
and edx, 0xffffffdf
or edx, eax
mov byte [ecx + 0x178], dl
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edi + 0x181]
and edx, 4
movzx eax, byte [ecx + 0x181]
and eax, 0xfffffffb
or eax, edx
mov byte [ecx + 0x181], al
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edi + 0x181]
and eax, 8
movzx ecx, byte [edx + 0x181]
and ecx, 0xfffffff7
or ecx, eax
mov byte [edx + 0x181], cl
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [edi + 0x178]
and ecx, 0x40
movzx eax, byte [edx + 0x178]
and eax, 0xffffffbf
or eax, ecx
mov byte [edx + 0x178], al
mov ecx, dword [ebp - 0x1c]
movzx eax, byte [edi + 0x178]
and eax, 0xffffff80
movzx edx, byte [ecx + 0x178]
and edx, 0x7f
or edx, eax
mov byte [ecx + 0x178], dl
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edi + 0x178]
and edx, 0x10
movzx eax, byte [ecx + 0x178]
and eax, 0xffffffef
or eax, edx
mov byte [ecx + 0x178], al
mov ecx, 0x4eb8c4
mov eax, 1
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x1e0], 4
mov dword [ebp - 0x204], eax
mov dword [ebp - 0x20c], ecx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x448add
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x448ac8
dec eax
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x238]
mov edx, dword [ebp - 0x1c]
call fcn.00449228
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x448b5a
push dword [ebp - 0x1c]
call fcn.00431ee0
push dword [ebp - 0x20]
call fcn.00431ee0
add esp, 8
cmp dword [edi + 0x108], 6
je 0x448b36
mov eax, dword [ebp - 0x18]
push dword [eax + 0x108]
call fcn.004325f0
add esp, 4
cmp dword [edi + 0x108], 5
je 0x448b47
mov eax, dword [ebp - 0x14]
push dword [eax + 0x108]
call fcn.004325f0
add esp, 4
mov eax, dword [ebp - 0x16c]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
movzx ecx, byte [edi + 0x178]
and ecx, 1
mov dword [eax + 0x108], 5
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x178]
and edx, 0xfffffffe
or edx, ecx
mov byte [eax + 0x178], dl
mov ecx, dword [ebp - 0x20]
movzx edx, byte [edi + 0x178]
and edx, 2
movzx eax, byte [ecx + 0x178]
and eax, 0xfffffffd
or eax, edx
mov byte [ecx + 0x178], al
mov edx, dword [ebp - 0x20]
movzx eax, byte [edi + 0x178]
and eax, 4
movzx ecx, byte [edx + 0x178]
and ecx, 0xfffffffb
or ecx, eax
mov byte [edx + 0x178], cl
mov edx, dword [ebp - 0x20]
movzx ecx, byte [edi + 0x178]
and ecx, 8
movzx eax, byte [edx + 0x178]
and eax, 0xfffffff7
or eax, ecx
mov byte [edx + 0x178], al
mov ecx, dword [ebp - 0x20]
movzx eax, byte [edi + 0x178]
and eax, 0x20
movzx edx, byte [ecx + 0x178]
and edx, 0xffffffdf
or edx, eax
mov byte [ecx + 0x178], dl
mov ecx, dword [ebp - 0x20]
movzx edx, byte [edi + 0x181]
and edx, 4
movzx eax, byte [ecx + 0x181]
and eax, 0xfffffffb
or eax, edx
mov byte [ecx + 0x181], al
mov edx, dword [ebp - 0x20]
movzx eax, byte [edi + 0x181]
and eax, 8
movzx ecx, byte [edx + 0x181]
and ecx, 0xfffffff7
or ecx, eax
mov byte [edx + 0x181], cl
mov edx, dword [ebp - 0x20]
movzx ecx, byte [edi + 0x178]
and ecx, 0x40
movzx eax, byte [edx + 0x178]
and eax, 0xffffffbf
or eax, ecx
mov byte [edx + 0x178], al
mov ecx, dword [ebp - 0x20]
movzx eax, byte [edi + 0x178]
and eax, 0xffffff80
movzx edx, byte [ecx + 0x178]
and edx, 0x7f
or edx, eax
mov byte [ecx + 0x178], dl
mov ecx, dword [ebp - 0x20]
movzx edx, byte [edi + 0x178]
and edx, 0x10
movzx eax, byte [ecx + 0x178]
and eax, 0xffffffef
or eax, edx
mov byte [ecx + 0x178], al
mov ecx, str.CONIN_
mov dword [ebp - 0x20c], ecx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x448cbf
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x448caa
dec eax
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x238]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x228], 0
call fcn.00449228
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
jne 0x4491b9
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x168], 3
mov edx, dword [ebp - 0x1c]
or byte [edx + 0x17d], 0x40
cmp dword [esi], 0
jne 0x448fa3
mov dword [ebp - 0x64], edi
push 0
mov edi, dword [ebp - 0x1c]
push edi
call fcn.00437060
add esp, 8
test eax, eax
jne 0x449134
movsx ecx, byte [edi + 0x166]
lea eax, [ecx - 1]
cmp eax, 7
ja case.default.0x448d39
jmp dword [eax*4 + 0x4ee798]
mov edx, dword [edi + 0x40]
test edx, edx
je 0x448d4c
mov dword [edi + 0x3c], edx
jmp 0x448d52
mov edx, dword [edi + 0x38]
mov dword [edi + 0x3c], edx
mov eax, dword [edi + 0x100]
lea ecx, [edx + eax - 1]
mov dword [edi + 0x44], ecx
movzx eax, byte [edi + 0x178]
jmp 0x448e85
mov eax, dword [edi + 0x18]
test eax, eax
je 0x44901e
test byte [eax + 0x44], 2
je 0x448dab
mov edx, 0x2c
mov dword [eax + 0x38], edx
mov eax, dword [edi + 0x18]
mov dword [eax + 0x3c], edx
mov eax, dword [edi + 0x64]
test eax, eax
je 0x448d99
xor edx, edx
mov dword [eax + 4], edx
mov dword [edi + 0x64], edx
mov eax, 0x2c
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov eax, 0x2c
push eax
movzx edx, byte [edi + 0x17c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.0043da80
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x40]
test edx, edx
je 0x448de1
add edx, 4
jmp 0x448de7
mov edx, dword [edi + 0x38]
add edx, 4
mov eax, dword [edi + 0x100]
mov dword [edi + 0x3c], edx
lea ecx, [edx + eax - 8]
mov dword [edi + 0x44], ecx
movzx eax, byte [edi + 0x178]
jmp 0x448e85
mov edx, dword [edi + 0x40]
test edx, edx
je 0x448e0f
mov dword [edi + 0x3c], edx
jmp 0x448e15
mov edx, dword [edi + 0x38]
mov dword [edi + 0x3c], edx
mov eax, dword [edi + 0x100]
mov dword [ebp - 0x16c], eax
add eax, edx
mov dword [ebp - 0x168], eax
movzx eax, byte [edi + 0x178]
test al, 4
je 0x448e4b
test byte [edi + 0x17a], 0x40
je 0x448e4b
test byte [edi + 0x17b], 8
je 0x448e4b
cmp ecx, 1
je 0x448e56
mov ecx, dword [ebp - 0x168]
mov dword [edi + 0x44], ecx
jmp 0x448e85
mov ecx, dword [ebp - 0x16c]
lea ecx, [edx + ecx - 2]
mov dword [edi + 0x44], ecx
jmp 0x448e85
push 0x16ca
push str.for_nt_open_proc.c
push 2
push 8
call fcn.0040b430
add esp, 0x10
movzx eax, byte [edi + 0x178]
mov edx, dword [edi + 0x3c]
test al, 4
je 0x448ea4
test byte [edi + 0x17a], 0x40
je 0x448ea4
test byte [edi + 0x17b], 8
je 0x448ea4
cmp byte [edi + 0x166], 1
je 0x448eef
movsx eax, byte [edi + 0x168]
cmp eax, 2
jne 0x448ecb
movsx eax, byte [edi + 0x166]
cmp eax, 7
je 0x448eef
cmp eax, 6
je 0x448eef
cmp eax, 8
je 0x448eef
dec dword [edi + 0x44]
jmp 0x448eef
cmp eax, 1
jne 0x448eef
movsx eax, byte [edi + 0x166]
cmp eax, 7
je 0x448ee9
cmp eax, 6
je 0x448ee9
cmp eax, 8
je 0x448ee9
dec dword [edi + 0x44]
add edx, 5
mov dword [edi + 0x3c], edx
mov dword [edi + 0x48], edx
lea eax, [ebp - 0x164]
mov dword [edi + 0x4c], 0
mov edx, dword [ebp - 0x1c]
push dword [ebp - 0x10]
push eax
push dword [edx + 0x3c]
call fcn.004cd9d0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
add dword [edx + 0x3c], eax
push dword [ebp - 0x1c]
call fcn.00435cb0
add esp, 0x10
test eax, eax
jne 0x4490c5
xor eax, eax
push eax
push eax
push dword [ebp - 0x20]
call fcn.00443390
add esp, 0xc
test eax, eax
jne 0x449056
mov edx, dword [ebp - 0x20]
mov edi, dword [edx + 0x44]
sub edi, dword [edx + 0x3c]
push edi
push dword [edx + 0x3c]
push dword [ebx]
call fcn.004cd9d0
add esp, 0xc
mov edx, dword [ebx]
mov byte [edx + edi], 0
cmp byte [edx], 0x20
jne 0x448f74
test edi, edi
jle 0x449049
inc edx
dec edi
mov dword [ebx], edx
cmp byte [edx], 0x20
je 0x448f63
test edi, edi
jle 0x449049
test byte [edi + edx - 1], 0xdf
jne 0x44903d
dec edi
test edi, edi
jg 0x448f7c
lea esi, [esi]
lea edi, [edi]
mov dword [esi], edi
je 0x448d10
mov edi, dword [ebp - 0x64]
push 0
push dword [ebp - 0x1c]
call fcn.00431cd0
push 0
push dword [ebp - 0x20]
call fcn.00431cd0
push dword [ebp - 0x1c]
call fcn.00431ee0
push dword [ebp - 0x20]
call fcn.00431ee0
add esp, 0x18
cmp dword [edi + 0x108], 6
je 0x448fed
mov eax, dword [ebp - 0x18]
push dword [eax + 0x108]
call fcn.004325f0
add esp, 4
cmp dword [edi + 0x108], 5
je 0x448ffe
mov eax, dword [ebp - 0x14]
push dword [eax + 0x108]
call fcn.004325f0
add esp, 4
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push 1
call fcn.004d2950
add esp, 4
push 1
call fcn.0047e260
push edi
mov eax, 0x2c
push eax
push eax
push 1
call fcn.00409370
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov eax, edi
mov edi, dword [ebp - 0x64]
mov dword [esi], eax
jmp 0x448fa3
mov dword [esi], edi
je 0x448d10
jmp 0x448fa0
push 0
push dword [ebp - 0x1c]
mov ebx, eax
mov edi, dword [ebp - 0x64]
call fcn.00431cd0
push 0
push dword [ebp - 0x20]
call fcn.00431cd0
push dword [ebp - 0x1c]
call fcn.00431ee0
push dword [ebp - 0x20]
call fcn.00431ee0
add esp, 0x18
cmp dword [edi + 0x108], 6
je 0x4490a5
mov edx, dword [ebp - 0x18]
push dword [edx + 0x108]
call fcn.004325f0
add esp, 4
cmp dword [edi + 0x108], 5
je 0x4490b6
mov edx, dword [ebp - 0x14]
push dword [edx + 0x108]
call fcn.004325f0
add esp, 4
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp - 0x1c]
mov ebx, eax
mov edi, dword [ebp - 0x64]
call fcn.00431cd0
push 0
push dword [ebp - 0x20]
call fcn.00431cd0
push dword [ebp - 0x1c]
call fcn.00431ee0
push dword [ebp - 0x20]
call fcn.00431ee0
add esp, 0x18
cmp dword [edi + 0x108], 6
je 0x449114
mov edx, dword [ebp - 0x18]
push dword [edx + 0x108]
call fcn.004325f0
add esp, 4
cmp dword [edi + 0x108], 5
je 0x449125
mov edx, dword [ebp - 0x14]
push dword [edx + 0x108]
call fcn.004325f0
add esp, 4
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
test eax, eax
je 0x44919a
test byte [eax + 0x44], 2
je 0x449170
mov edx, 0x26
mov dword [eax + 0x38], edx
mov eax, dword [edi + 0x18]
mov dword [eax + 0x3c], edx
mov eax, dword [edi + 0x64]
test eax, eax
je 0x44915e
xor edx, edx
mov dword [eax + 4], edx
mov dword [edi + 0x64], edx
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov eax, 0x26
push eax
movzx edx, byte [edi + 0x17c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.0043da80
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push edi
mov eax, 0x26
push eax
push eax
push 1
call fcn.00409370
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp - 0x1c]
call fcn.00431cd0
push dword [ebp - 0x1c]
call fcn.00431ee0
push dword [ebp - 0x20]
call fcn.00431ee0
add esp, 0x10
cmp dword [edi + 0x108], 6
je 0x4491f9
mov eax, dword [ebp - 0x18]
push dword [eax + 0x108]
call fcn.004325f0
add esp, 4
cmp dword [edi + 0x108], 5
je 0x44920a
mov eax, dword [ebp - 0x14]
push dword [eax + 0x108]
call fcn.004325f0
add esp, 4
mov eax, dword [ebp - 0x16c]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret