Function at 0x424610
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov dword [ebp - 0xc], ebx
mov ebx, edx
mov edx, dword [0x4e27a4]
mov dword [ebp - 8], edi
mov edi, eax
mov dword [ebp - 4], esi
mov esi, ecx
cmp edx, dword [0x538510]
jge 0x4246ce
mov eax, dword [0x538514]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x238], ecx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x42465f
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x42464a
dec eax
mov dword [esi], eax
push eax
push dword [ebp - 0x238]
push dword [ebx]
call fcn.004a8470
add esp, 0xc
mov edx, dword [ebx]
mov eax, dword [esi]
mov byte [eax + edx], 0
mov ecx, dword [0x4e27a4]
inc ecx
push ecx
mov dword [0x4e27a4], ecx
push 0x4e27a4
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [ebx]
mov eax, dword [esi]
cmp byte [edx], 0x20
jne 0x4246ab
test eax, eax
jle 0x4246c8
inc edx
dec eax
mov dword [ebx], edx
mov dword [esi], eax
cmp byte [edx], 0x20
je 0x42469c
test eax, eax
jle 0x4246c8
movsx ecx, byte [eax + edx - 1]
cmp ecx, 0x20
je 0x4246c1
test ecx, ecx
jne 0x424f99
dec eax
mov dword [esi], eax
test eax, eax
jg 0x4246af
jne 0x424f99
cmp dword [0x538460], 0
je 0x424764
push dword [edi + 0x100]
push str.Open:_Select_File_for_Unit
push str._s_d
lea eax, [ebp - 0x238]
push eax
call fcn.0045d2b0
add esp, 0x10
lea eax, [ebp - 0x238]
mov edx, dword [ebx]
mov edi, eax
jmp 0x424708
mov edx, dword [ebx]
push edi
push 0x100
push edx
call fcn.004b2130
add esp, 0xc
test eax, eax
je 0x424742
mov ecx, dword [ebx]
movzx edx, byte [ecx]
test edx, edx
je 0x424742
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x42473b
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x424726
dec eax
mov dword [esi], eax
jmp 0x424f99
push 0x2134
push str.File_Open_Error
push str.A_File_Must_be_Selected_r_rTerminate_Program_
call fcn.004b22c0
add esp, 0xc
cmp eax, 6
je 0x424fa8
jmp 0x424706
push 0
push 0x20b
call fcn.0040f230
push eax
push str._s_r_n
lea edx, [ebp - 0x164]
push edx
call fcn.0045d2b0
add esp, 0x14
lea ecx, [ebp - 0x164]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x4247a2
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x42478d
dec eax
push dword [edi + 0x100]
push 1
mov edx, eax
push 0x20c
mov dword [ebp - 0x238], edx
call fcn.0040f230
mov edx, dword [ebp - 0x238]
push eax
push 0x4c5a40
lea ecx, [ebp - 0x164]
add edx, ecx
push edx
call fcn.0045d2b0
add esp, 0x18
lea ecx, [ebp - 0x164]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x4247f6
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x4247e1
dec eax
mov dword [ebp - 0x10], eax
cmp dword [edi + 0x100], 6
je 0x424823
push 4
lea eax, [ebp - 0x60]
push eax
lea edx, [ebp - 0x18]
push edx
push 6
call fcn.0041cc10
add esp, 0x10
test eax, eax
jne 0x42488a
cmp dword [edi + 0x100], 5
je 0x424873
push 1
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x14]
push edx
push 5
call fcn.0041cc10
mov dword [ebp - 0x238], eax
add esp, 0x10
cmp dword [ebp - 0x238], 0
je 0x424873
cmp dword [edi + 0x100], 6
je 0x424860
mov eax, dword [ebp - 0x18]
push dword [eax + 0x100]
call fcn.0041d7f0
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 0x180
call fcn.0041fe20
add esp, 0xc
test eax, eax
je 0x424897
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 0x180
call fcn.0041fe20
add esp, 0xc
test eax, eax
je 0x4248bb
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push 0x180
push 0
push dword [ebp - 0x1c]
call fcn.004a8410
push 0x180
push 0
push dword [ebp - 0x20]
call fcn.004a8410
push 0xcc
push 0
lea eax, [ebp - 0x238]
push eax
call fcn.004a8410
add esp, 0x24
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [edi + 0x168]
and ecx, 1
mov dword [eax + 0x100], 6
mov eax, dword [ebp - 0x1c]
movzx edx, byte [eax + 0x168]
and edx, 0xfffffffe
or edx, ecx
mov byte [eax + 0x168], dl
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edi + 0x168]
and edx, 2
movzx eax, byte [ecx + 0x168]
and eax, 0xfffffffd
or eax, edx
mov byte [ecx + 0x168], al
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edi + 0x168]
and eax, 4
movzx ecx, byte [edx + 0x168]
and ecx, 0xfffffffb
or ecx, eax
mov byte [edx + 0x168], cl
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [edi + 0x168]
and ecx, 8
movzx eax, byte [edx + 0x168]
and eax, 0xfffffff7
or eax, ecx
mov byte [edx + 0x168], al
mov ecx, dword [ebp - 0x1c]
movzx eax, byte [edi + 0x168]
and eax, 0x20
movzx edx, byte [ecx + 0x168]
and edx, 0xffffffdf
or edx, eax
mov byte [ecx + 0x168], dl
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edi + 0x171]
and edx, 4
movzx eax, byte [ecx + 0x171]
and eax, 0xfffffffb
or eax, edx
mov byte [ecx + 0x171], al
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edi + 0x171]
and eax, 8
movzx ecx, byte [edx + 0x171]
and ecx, 0xfffffff7
or ecx, eax
mov byte [edx + 0x171], cl
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [edi + 0x168]
and ecx, 0x40
movzx eax, byte [edx + 0x168]
and eax, 0xffffffbf
or eax, ecx
mov byte [edx + 0x168], al
mov ecx, dword [ebp - 0x1c]
movzx eax, byte [edi + 0x168]
and eax, 0xffffff80
movzx edx, byte [ecx + 0x168]
and edx, 0x7f
or edx, eax
mov byte [ecx + 0x168], dl
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edi + 0x168]
and edx, 0x10
movzx eax, byte [ecx + 0x168]
and eax, 0xffffffef
or eax, edx
mov byte [ecx + 0x168], al
mov ecx, 0x4c3788
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 0x424a6f
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x424a5a
dec eax
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x238]
mov edx, dword [ebp - 0x1c]
call fcn.004251c8
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x424aec
push dword [ebp - 0x1c]
call fcn.0041fee0
push dword [ebp - 0x20]
call fcn.0041fee0
add esp, 8
cmp dword [edi + 0x100], 6
je 0x424ac8
mov eax, dword [ebp - 0x18]
push dword [eax + 0x100]
call fcn.0041d7f0
add esp, 4
cmp dword [edi + 0x100], 5
je 0x424ad9
mov eax, dword [ebp - 0x14]
push dword [eax + 0x100]
call fcn.0041d7f0
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 + 0x168]
and ecx, 1
mov dword [eax + 0x100], 5
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x168]
and edx, 0xfffffffe
or edx, ecx
mov byte [eax + 0x168], dl
mov ecx, dword [ebp - 0x20]
movzx edx, byte [edi + 0x168]
and edx, 2
movzx eax, byte [ecx + 0x168]
and eax, 0xfffffffd
or eax, edx
mov byte [ecx + 0x168], al
mov edx, dword [ebp - 0x20]
movzx eax, byte [edi + 0x168]
and eax, 4
movzx ecx, byte [edx + 0x168]
and ecx, 0xfffffffb
or ecx, eax
mov byte [edx + 0x168], cl
mov edx, dword [ebp - 0x20]
movzx ecx, byte [edi + 0x168]
and ecx, 8
movzx eax, byte [edx + 0x168]
and eax, 0xfffffff7
or eax, ecx
mov byte [edx + 0x168], al
mov ecx, dword [ebp - 0x20]
movzx eax, byte [edi + 0x168]
and eax, 0x20
movzx edx, byte [ecx + 0x168]
and edx, 0xffffffdf
or edx, eax
mov byte [ecx + 0x168], dl
mov ecx, dword [ebp - 0x20]
movzx edx, byte [edi + 0x171]
and edx, 4
movzx eax, byte [ecx + 0x171]
and eax, 0xfffffffb
or eax, edx
mov byte [ecx + 0x171], al
mov edx, dword [ebp - 0x20]
movzx eax, byte [edi + 0x171]
and eax, 8
movzx ecx, byte [edx + 0x171]
and ecx, 0xfffffff7
or ecx, eax
mov byte [edx + 0x171], cl
mov edx, dword [ebp - 0x20]
movzx ecx, byte [edi + 0x168]
and ecx, 0x40
movzx eax, byte [edx + 0x168]
and eax, 0xffffffbf
or eax, ecx
mov byte [edx + 0x168], al
mov ecx, dword [ebp - 0x20]
movzx eax, byte [edi + 0x168]
and eax, 0xffffff80
movzx edx, byte [ecx + 0x168]
and edx, 0x7f
or edx, eax
mov byte [ecx + 0x168], dl
mov ecx, dword [ebp - 0x20]
movzx edx, byte [edi + 0x168]
and edx, 0x10
movzx eax, byte [ecx + 0x168]
and eax, 0xffffffef
or eax, edx
mov byte [ecx + 0x168], al
mov ecx, str.CONIN_
mov dword [ebp - 0x20c], ecx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x424c51
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x424c3c
dec eax
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x238]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x228], 0
call fcn.004251c8
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
jne 0x425154
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x156], 3
mov edx, dword [ebp - 0x1c]
or byte [edx + 0x16d], 0x40
cmp dword [esi], 0
jne 0x424f3e
mov dword [ebp - 0x64], edi
push 0
mov edi, dword [ebp - 0x1c]
push edi
call fcn.0042d050
add esp, 8
test eax, eax
jne 0x4250cf
movsx ecx, byte [edi + 0x154]
lea eax, [ecx - 1]
cmp eax, 7
ja case.default.0x424cd2
mov eax, dword [eax*4 + 0x4c8ee4]
jmp eax
mov edx, dword [edi + 0x40]
test edx, edx
je 0x424ce0
mov dword [edi + 0x3c], edx
jmp 0x424ce6
mov edx, dword [edi + 0x38]
mov dword [edi + 0x3c], edx
mov eax, dword [edi + 0xf8]
lea ecx, [edx + eax - 1]
mov dword [edi + 0x44], ecx
movzx eax, byte [edi + 0x168]
jmp 0x424e19
mov eax, dword [edi + 0x18]
test eax, eax
je 0x424fb9
test byte [eax + 0x44], 2
je 0x424d3f
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 0x424d2d
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 + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.00423390
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 0x424d75
add edx, 4
jmp 0x424d7b
mov edx, dword [edi + 0x38]
add edx, 4
mov eax, dword [edi + 0xf8]
mov dword [edi + 0x3c], edx
lea ecx, [edx + eax - 8]
mov dword [edi + 0x44], ecx
movzx eax, byte [edi + 0x168]
jmp 0x424e19
mov edx, dword [edi + 0x40]
test edx, edx
je 0x424da3
mov dword [edi + 0x3c], edx
jmp 0x424da9
mov edx, dword [edi + 0x38]
mov dword [edi + 0x3c], edx
mov eax, dword [edi + 0xf8]
mov dword [ebp - 0x168], eax
add eax, edx
mov dword [ebp - 0x16c], eax
movzx eax, byte [edi + 0x168]
test al, 4
je 0x424ddf
test byte [edi + 0x16a], 0x40
je 0x424ddf
test byte [edi + 0x16b], 8
je 0x424ddf
cmp ecx, 1
je 0x424dea
mov ecx, dword [ebp - 0x16c]
mov dword [edi + 0x44], ecx
jmp 0x424e19
mov ecx, dword [ebp - 0x168]
lea ecx, [edx + ecx - 2]
mov dword [edi + 0x44], ecx
jmp 0x424e19
push 0x1606
push str.for_nt_open_proc.c
push 2
push 8
call fcn.0040e0a0
add esp, 0x10
movzx eax, byte [edi + 0x168]
mov edx, dword [edi + 0x3c]
test al, 4
je 0x424e38
test byte [edi + 0x16a], 0x40
je 0x424e38
test byte [edi + 0x16b], 8
je 0x424e38
cmp byte [edi + 0x154], 1
je 0x424e83
movsx eax, byte [edi + 0x156]
cmp eax, 2
jne 0x424e5f
movsx eax, byte [edi + 0x154]
cmp eax, 7
je 0x424e83
cmp eax, 6
je 0x424e83
cmp eax, 8
je 0x424e83
dec dword [edi + 0x44]
jmp 0x424e83
cmp eax, 1
jne 0x424e83
movsx eax, byte [edi + 0x154]
cmp eax, 7
je 0x424e7d
cmp eax, 6
je 0x424e7d
cmp eax, 8
je 0x424e7d
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.004a8470
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
add dword [edx + 0x3c], eax
push dword [ebp - 0x1c]
call fcn.0042bb60
add esp, 0x10
test eax, eax
jne 0x425060
xor eax, eax
push eax
push eax
push dword [ebp - 0x20]
call fcn.00428b30
add esp, 0xc
test eax, eax
jne 0x424ff1
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.004a8470
add esp, 0xc
mov edx, dword [ebx]
mov byte [edx + edi], 0
cmp byte [edx], 0x20
jne 0x424f08
test edi, edi
jle 0x424fe4
inc edx
dec edi
mov dword [ebx], edx
cmp byte [edx], 0x20
je 0x424ef7
test edi, edi
jle 0x424fe4
movsx ecx, byte [edi + edx - 1]
cmp ecx, 0x20
je 0x424f22
test ecx, ecx
jne 0x424fd8
dec edi
test edi, edi
jg 0x424f10
lea esi, [esi]
lea edi, [edi]
mov dword [esi], edi
je 0x424ca2
mov edi, dword [ebp - 0x64]
push 0
push dword [ebp - 0x1c]
call fcn.0041c970
push 0
push dword [ebp - 0x20]
call fcn.0041c970
push dword [ebp - 0x1c]
call fcn.0041fee0
push dword [ebp - 0x20]
call fcn.0041fee0
add esp, 0x18
cmp dword [edi + 0x100], 6
je 0x424f88
mov eax, dword [ebp - 0x18]
push dword [eax + 0x100]
call fcn.0041d7f0
add esp, 4
cmp dword [edi + 0x100], 5
je 0x424f99
mov eax, dword [ebp - 0x14]
push dword [eax + 0x100]
call fcn.0041d7f0
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.004b2400
push 1
call fcn.0045ef60
add esp, 8
push edi
mov eax, 0x2c
push eax
push eax
push 1
call fcn.0040bfd0
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 0x424f3e
mov dword [esi], edi
je 0x424ca2
jmp 0x424f3b
push 0
push dword [ebp - 0x1c]
mov ebx, eax
mov edi, dword [ebp - 0x64]
call fcn.0041c970
push 0
push dword [ebp - 0x20]
call fcn.0041c970
push dword [ebp - 0x1c]
call fcn.0041fee0
push dword [ebp - 0x20]
call fcn.0041fee0
add esp, 0x18
cmp dword [edi + 0x100], 6
je 0x425040
mov edx, dword [ebp - 0x18]
push dword [edx + 0x100]
call fcn.0041d7f0
add esp, 4
cmp dword [edi + 0x100], 5
je 0x425051
mov edx, dword [ebp - 0x14]
push dword [edx + 0x100]
call fcn.0041d7f0
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.0041c970
push 0
push dword [ebp - 0x20]
call fcn.0041c970
push dword [ebp - 0x1c]
call fcn.0041fee0
push dword [ebp - 0x20]
call fcn.0041fee0
add esp, 0x18
cmp dword [edi + 0x100], 6
je 0x4250af
mov edx, dword [ebp - 0x18]
push dword [edx + 0x100]
call fcn.0041d7f0
add esp, 4
cmp dword [edi + 0x100], 5
je 0x4250c0
mov edx, dword [ebp - 0x14]
push dword [edx + 0x100]
call fcn.0041d7f0
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 0x425135
test byte [eax + 0x44], 2
je 0x42510b
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 0x4250f9
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 + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.00423390
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.0040bfd0
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.0041c970
push dword [ebp - 0x1c]
call fcn.0041fee0
push dword [ebp - 0x20]
call fcn.0041fee0
add esp, 0x10
cmp dword [edi + 0x100], 6
je 0x425194
mov eax, dword [ebp - 0x18]
push dword [eax + 0x100]
call fcn.0041d7f0
add esp, 4
cmp dword [edi + 0x100], 5
je 0x4251a5
mov eax, dword [ebp - 0x14]
push dword [eax + 0x100]
call fcn.0041d7f0
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