Function at 0x431d60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
mov esi, ecx
mov ebx, edx
mov edi, eax
mov edx, dword [0x525820]
mov eax, dword [0x53a850]
dec eax
cmp edx, eax
jg 0x431e15
mov eax, dword [0x53a860]
mov ecx, dword [eax + edx*4]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x431dab
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x431d96
dec eax
push eax
push ecx
push dword [ebx]
mov dword [esi], eax
call fcn.004b1140
add esp, 0xc
mov edx, dword [ebx]
mov eax, dword [esi]
mov byte [eax + edx], 0
mov ecx, dword [0x525820]
inc ecx
mov dword [0x525820], ecx
push ecx
push 0x525820
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [ebx]
mov eax, dword [esi]
cmp byte [edx], 0x20
jne 0x431df2
test eax, eax
jle 0x431e0f
inc edx
mov dword [ebx], edx
dec eax
cmp byte [edx], 0x20
mov dword [esi], eax
je 0x431de3
test eax, eax
jle 0x431e0f
movsx ecx, byte [eax + edx - 1]
cmp ecx, 0x20
je 0x431e08
test ecx, ecx
jne 0x4326d6
dec eax
mov dword [esi], eax
test eax, eax
jg 0x431df6
jne 0x4326d6
cmp dword [0x53a7a0], 0
je 0x431eab
push dword [edi + 0xf0]
push str.Open:_Select_File_for_Unit
lea eax, [ebp - 0x230]
push str._s_d
push eax
call fcn.004612a0
lea eax, [ebp - 0x230]
add esp, 0x10
mov edx, dword [ebx]
mov edi, eax
jmp 0x431e4f
mov edx, dword [ebx]
push edi
push 0x100
push edx
call fcn.004ba800
add esp, 0xc
test eax, eax
je 0x431e89
mov ecx, dword [ebx]
movzx edx, byte [ecx]
test edx, edx
je 0x431e89
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x431e82
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x431e6d
dec eax
mov dword [esi], eax
jmp 0x4326d6
push 0x2134
push str.File_Open_Error
push str.A_File_Must_be_Selected_r_rTerminate_Program_
call fcn.004ba990
add esp, 0xc
cmp eax, 6
je 0x4326e5
jmp 0x431e4d
push 0
push 0x20b
call fcn.004231f0
lea edx, [ebp - 0x164]
push eax
push str._s_r_n
push edx
call fcn.004612a0
add esp, 0x14
lea ecx, [ebp - 0x164]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x431ee9
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x431ed4
dec eax
push dword [edi + 0xf0]
push 1
mov edx, eax
push 0x20c
mov dword [ebp - 0x230], edx
call fcn.004231f0
mov edx, dword [ebp - 0x230]
lea ecx, [ebp - 0x164]
push eax
push 0x503e80
add edx, ecx
push edx
call fcn.004612a0
add esp, 0x18
lea ecx, [ebp - 0x164]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x431f3d
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x431f28
dec eax
cmp dword [edi + 0xf0], 6
mov dword [ebp - 0x10], eax
je 0x431f6a
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x60]
push 4
push eax
push edx
push 6
call fcn.00426560
add esp, 0x10
test eax, eax
jne 0x431fcf
cmp dword [edi + 0xf0], 5
je 0x431fb8
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x40]
push 1
push eax
push edx
push 5
call fcn.00426560
mov dword [ebp - 0x230], eax
add esp, 0x10
cmp dword [ebp - 0x230], 0
je 0x431fb8
cmp dword [edi + 0xf0], 6
je 0x431fa5
mov eax, dword [ebp - 0x18]
push dword [eax + 0xf0]
call fcn.00425d90
pop ecx
mov eax, dword [ebp - 0x230]
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 0x170
call fcn.0042e2b0
add esp, 0xc
test eax, eax
je 0x431fdc
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 0x170
call fcn.0042e2b0
add esp, 0xc
test eax, eax
je 0x432000
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push 0x170
push 0
push dword [ebp - 0x1c]
call fcn.004b11c0
push 0x170
push 0
push dword [ebp - 0x20]
call fcn.004b11c0
lea eax, [ebp - 0x230]
push 0xc4
push 0
push eax
call fcn.004b11c0
add esp, 0x24
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0xf0], 6
movzx ecx, byte [edi + 0x158]
and ecx, 1
mov eax, dword [ebp - 0x1c]
movzx edx, byte [eax + 0x158]
and edx, 0xfffffffe
or edx, ecx
mov byte [eax + 0x158], dl
movzx edx, byte [edi + 0x158]
mov ecx, dword [ebp - 0x1c]
movzx eax, byte [ecx + 0x158]
and eax, 0xfffffffd
and edx, 2
or eax, edx
mov byte [ecx + 0x158], al
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [edx + 0x158]
movzx eax, byte [edi + 0x158]
and ecx, 0xfffffffb
and eax, 4
or ecx, eax
mov byte [edx + 0x158], cl
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx + 0x158]
movzx ecx, byte [edi + 0x158]
and eax, 0xfffffff7
and ecx, 8
or eax, ecx
mov byte [edx + 0x158], al
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + 0x158]
movzx eax, byte [edi + 0x158]
and edx, 0xffffffdf
and eax, 0x20
or edx, eax
mov byte [ecx + 0x158], dl
mov ecx, dword [ebp - 0x1c]
movzx eax, byte [ecx + 0x161]
movzx edx, byte [edi + 0x161]
and eax, 0xfffffffb
and edx, 4
or eax, edx
mov byte [ecx + 0x161], al
movzx eax, byte [edi + 0x161]
and eax, 8
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [edx + 0x161]
and ecx, 0xfffffff7
or ecx, eax
mov byte [edx + 0x161], cl
movzx ecx, byte [edi + 0x158]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx + 0x158]
and eax, 0xffffffbf
and ecx, 0x40
or eax, ecx
mov byte [edx + 0x158], al
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + 0x158]
movzx eax, byte [edi + 0x158]
and edx, 0x7f
and eax, 0xffffff80
or edx, eax
mov byte [ecx + 0x158], dl
mov ecx, dword [ebp - 0x1c]
movzx eax, byte [ecx + 0x158]
movzx edx, byte [edi + 0x158]
and eax, 0xffffffef
and edx, 0x10
or eax, edx
mov byte [ecx + 0x158], al
mov dword [ebp - 0x1d8], 4
mov eax, 1
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x1fc], eax
mov ecx, 0x501878
mov dword [ebp - 0x204], ecx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x4321b4
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43219f
dec eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x200], eax
lea eax, [ebp - 0x230]
call fcn.004328f8
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x43222d
push dword [ebp - 0x1c]
call fcn.0042e370
push dword [ebp - 0x20]
call fcn.0042e370
add esp, 8
cmp dword [edi + 0xf0], 6
je 0x43220b
mov eax, dword [ebp - 0x18]
push dword [eax + 0xf0]
call fcn.00425d90
pop ecx
cmp dword [edi + 0xf0], 5
je 0x43221a
mov eax, dword [ebp - 0x14]
push dword [eax + 0xf0]
call fcn.00425d90
pop ecx
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]
mov dword [eax + 0xf0], 5
movzx ecx, byte [edi + 0x158]
and ecx, 1
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x158]
and edx, 0xfffffffe
or edx, ecx
mov byte [eax + 0x158], dl
movzx edx, byte [edi + 0x158]
mov ecx, dword [ebp - 0x20]
movzx eax, byte [ecx + 0x158]
and eax, 0xfffffffd
and edx, 2
or eax, edx
mov byte [ecx + 0x158], al
mov edx, dword [ebp - 0x20]
movzx ecx, byte [edx + 0x158]
movzx eax, byte [edi + 0x158]
and ecx, 0xfffffffb
and eax, 4
or ecx, eax
mov byte [edx + 0x158], cl
mov edx, dword [ebp - 0x20]
movzx eax, byte [edx + 0x158]
movzx ecx, byte [edi + 0x158]
and eax, 0xfffffff7
and ecx, 8
or eax, ecx
mov byte [edx + 0x158], al
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + 0x158]
movzx eax, byte [edi + 0x158]
and edx, 0xffffffdf
and eax, 0x20
or edx, eax
mov byte [ecx + 0x158], dl
mov ecx, dword [ebp - 0x20]
movzx eax, byte [ecx + 0x161]
movzx edx, byte [edi + 0x161]
and eax, 0xfffffffb
and edx, 4
or eax, edx
mov byte [ecx + 0x161], al
movzx eax, byte [edi + 0x161]
and eax, 8
mov edx, dword [ebp - 0x20]
movzx ecx, byte [edx + 0x161]
and ecx, 0xfffffff7
or ecx, eax
mov byte [edx + 0x161], cl
movzx ecx, byte [edi + 0x158]
mov edx, dword [ebp - 0x20]
movzx eax, byte [edx + 0x158]
and eax, 0xffffffbf
and ecx, 0x40
or eax, ecx
mov byte [edx + 0x158], al
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + 0x158]
movzx eax, byte [edi + 0x158]
and edx, 0x7f
and eax, 0xffffff80
or edx, eax
mov byte [ecx + 0x158], dl
mov ecx, dword [ebp - 0x20]
movzx eax, byte [ecx + 0x158]
movzx edx, byte [edi + 0x158]
and eax, 0xffffffef
and edx, 0x10
or eax, edx
mov byte [ecx + 0x158], al
mov ecx, 0x501870
mov dword [ebp - 0x204], ecx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x432392
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43237d
dec eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x200], eax
lea eax, [ebp - 0x230]
call fcn.004328f8
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
jne 0x432889
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x146], 3
mov edx, dword [ebp - 0x1c]
or byte [edx + 0x15d], 0x40
cmp dword [esi], 0
jne 0x43267f
mov dword [ebp - 0x64], edi
mov edi, dword [ebp - 0x1c]
push 0
push edi
call fcn.00429e20
add esp, 8
test eax, eax
jne 0x432804
movsx ecx, byte [edi + 0x144]
lea eax, [ecx - 1]
cmp eax, 7
ja case.default.0x432413
mov eax, dword [eax*4 + 0x507e58]
jmp eax
mov edx, dword [edi + 0x40]
test edx, edx
je 0x432421
mov dword [edi + 0x3c], edx
jmp 0x432427
mov edx, dword [edi + 0x38]
mov dword [edi + 0x3c], edx
mov eax, dword [edi + 0xe8]
lea ecx, [edx + eax - 1]
movzx eax, byte [edi + 0x158]
mov dword [edi + 0x44], ecx
jmp 0x43255a
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4326f6
test byte [eax + 0x44], 2
je 0x432480
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 0x43246e
xor edx, edx
mov dword [eax + 4], edx
mov dword [edi + 0x64], edx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, 0x2c
mov esp, ebp
pop ebp
ret
movzx edx, byte [edi + 0x15c]
and edx, 7
mov eax, 0x2c
push eax
push eax
push edx
push 0xffffffffffffffff
push edi
call fcn.0042d020
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 0x4324b6
add edx, 4
jmp 0x4324bc
mov edx, dword [edi + 0x38]
add edx, 4
mov eax, dword [edi + 0xe8]
mov dword [edi + 0x3c], edx
lea ecx, [edx + eax - 8]
movzx eax, byte [edi + 0x158]
mov dword [edi + 0x44], ecx
jmp 0x43255a
mov edx, dword [edi + 0x40]
test edx, edx
je 0x4324e4
mov dword [edi + 0x3c], edx
jmp 0x4324ea
mov edx, dword [edi + 0x38]
mov dword [edi + 0x3c], edx
mov eax, dword [edi + 0xe8]
mov dword [ebp - 0x16c], eax
add eax, edx
mov dword [ebp - 0x168], eax
movzx eax, byte [edi + 0x158]
test al, 4
je 0x432520
test byte [edi + 0x15a], 0x40
je 0x432520
test byte [edi + 0x15b], 8
je 0x432520
cmp ecx, 1
je 0x43252b
mov ecx, dword [ebp - 0x168]
mov dword [edi + 0x44], ecx
jmp 0x43255a
mov ecx, dword [ebp - 0x16c]
lea ecx, [edx + ecx - 2]
mov dword [edi + 0x44], ecx
jmp 0x43255a
push 0x1608
push str.for_nt_open_proc.c
push 2
push 8
call fcn.004222a0
add esp, 0x10
movzx eax, byte [edi + 0x158]
mov edx, dword [edi + 0x3c]
test al, 4
je 0x432579
test byte [edi + 0x15a], 0x40
je 0x432579
test byte [edi + 0x15b], 8
je 0x432579
cmp byte [edi + 0x144], 1
je 0x4325c4
movsx eax, byte [edi + 0x146]
cmp eax, 2
jne 0x4325a0
movsx eax, byte [edi + 0x144]
cmp eax, 7
je 0x4325c4
cmp eax, 6
je 0x4325c4
cmp eax, 8
je 0x4325c4
dec dword [edi + 0x44]
jmp 0x4325c4
cmp eax, 1
jne 0x4325c4
movsx eax, byte [edi + 0x144]
cmp eax, 7
je 0x4325be
cmp eax, 6
je 0x4325be
cmp eax, 8
je 0x4325be
dec dword [edi + 0x44]
add edx, 5
mov dword [edi + 0x3c], edx
push dword [ebp - 0x10]
mov dword [edi + 0x4c], 0
lea eax, [ebp - 0x164]
push eax
mov dword [edi + 0x48], edx
mov edx, dword [ebp - 0x1c]
push dword [edx + 0x3c]
call fcn.004b1140
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
add dword [edx + 0x3c], eax
push dword [ebp - 0x1c]
call fcn.00428910
add esp, 0x10
test eax, eax
jne 0x432799
xor eax, eax
push eax
push eax
push dword [ebp - 0x20]
call fcn.00438120
add esp, 0xc
test eax, eax
jne 0x43272e
mov edi, dword [ebp - 0x20]
mov edx, dword [edi + 0x3c]
mov edi, dword [edi + 0x44]
sub edi, edx
push edi
push edx
push dword [ebx]
call fcn.004b1140
add esp, 0xc
mov edx, dword [ebx]
mov byte [edx + edi], 0
cmp byte [edx], 0x20
jne 0x432649
test edi, edi
jle 0x432721
inc edx
mov dword [ebx], edx
dec edi
cmp byte [edx], 0x20
je 0x432638
test edi, edi
jle 0x432721
movsx ecx, byte [edi + edx - 1]
cmp ecx, 0x20
je 0x432663
test ecx, ecx
jne 0x432715
dec edi
test edi, edi
jg 0x432651
lea esi, [esi]
lea edi, [edi]
mov dword [esi], edi
je 0x4323e3
mov edi, dword [ebp - 0x64]
push 0
push dword [ebp - 0x1c]
call fcn.0041eea0
push 0
push dword [ebp - 0x20]
call fcn.0041eea0
push dword [ebp - 0x1c]
call fcn.0042e370
push dword [ebp - 0x20]
call fcn.0042e370
add esp, 0x18
cmp dword [edi + 0xf0], 6
je 0x4326c7
mov eax, dword [ebp - 0x18]
push dword [eax + 0xf0]
call fcn.00425d90
pop ecx
cmp dword [edi + 0xf0], 5
je 0x4326d6
mov eax, dword [ebp - 0x14]
push dword [eax + 0xf0]
call fcn.00425d90
pop ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret
push 1
call fcn.004baad0
push 1
call fcn.00462cc0
add esp, 8
push edi
mov eax, 0x2c
push eax
push eax
push 1
call fcn.00420200
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 0x43267f
mov dword [esi], edi
je 0x4323e3
jmp 0x43267c
mov edi, dword [ebp - 0x64]
push 0
mov ebx, eax
push dword [ebp - 0x1c]
call fcn.0041eea0
push 0
push dword [ebp - 0x20]
call fcn.0041eea0
push dword [ebp - 0x1c]
call fcn.0042e370
push dword [ebp - 0x20]
call fcn.0042e370
add esp, 0x18
cmp dword [edi + 0xf0], 6
je 0x43277b
mov edx, dword [ebp - 0x18]
push dword [edx + 0xf0]
call fcn.00425d90
pop ecx
cmp dword [edi + 0xf0], 5
je 0x43278a
mov edx, dword [ebp - 0x14]
push dword [edx + 0xf0]
call fcn.00425d90
pop ecx
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x64]
push 0
mov ebx, eax
push dword [ebp - 0x1c]
call fcn.0041eea0
push 0
push dword [ebp - 0x20]
call fcn.0041eea0
push dword [ebp - 0x1c]
call fcn.0042e370
push dword [ebp - 0x20]
call fcn.0042e370
add esp, 0x18
cmp dword [edi + 0xf0], 6
je 0x4327e6
mov edx, dword [ebp - 0x18]
push dword [edx + 0xf0]
call fcn.00425d90
pop ecx
cmp dword [edi + 0xf0], 5
je 0x4327f5
mov edx, dword [ebp - 0x14]
push dword [edx + 0xf0]
call fcn.00425d90
pop ecx
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
test eax, eax
je 0x43286a
test byte [eax + 0x44], 2
je 0x432840
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 0x43282e
xor edx, edx
mov dword [eax + 4], edx
mov dword [edi + 0x64], edx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
movzx edx, byte [edi + 0x15c]
and edx, 7
mov eax, 0x26
push eax
push eax
push edx
push 0xffffffffffffffff
push edi
call fcn.0042d020
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.00420200
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.0041eea0
push dword [ebp - 0x1c]
call fcn.0042e370
push dword [ebp - 0x20]
call fcn.0042e370
add esp, 0x10
cmp dword [edi + 0xf0], 6
je 0x4328c7
mov eax, dword [ebp - 0x18]
push dword [eax + 0xf0]
call fcn.00425d90
pop ecx
cmp dword [edi + 0xf0], 5
je 0x4328d6
mov eax, dword [ebp - 0x14]
push dword [eax + 0xf0]
call fcn.00425d90
pop ecx
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