Function at 0x43d7c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov dword [ebp - 0xc], ebx
mov ebx, edx
mov edx, dword [0x4ffb30]
mov dword [ebp - 8], edi
mov edi, eax
mov dword [ebp - 4], esi
mov esi, ecx
cmp edx, dword [0x50ccf0]
jge 0x43d86c
mov eax, dword [0x50ccf4]
mov ecx, dword [eax + edx*4]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x43d809
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43d7f4
dec eax
push eax
push ecx
push dword [ebx]
mov dword [esi], eax
call fcn.004c6120
add esp, 0xc
mov edx, dword [ebx]
mov eax, dword [esi]
mov byte [eax + edx], 0
mov ecx, dword [0x4ffb30]
inc ecx
push ecx
mov dword [0x4ffb30], ecx
push 0x4ffb30
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [ebx]
mov eax, dword [esi]
cmp byte [edx], 0x20
jne 0x43d850
test eax, eax
jle 0x43d866
inc edx
dec eax
mov dword [ebx], edx
mov dword [esi], eax
cmp byte [edx], 0x20
je 0x43d841
test eax, eax
jle 0x43d866
test byte [eax + edx - 1], 0xdf
jne 0x43e12c
dec eax
mov dword [esi], eax
test eax, eax
jg 0x43d854
jne 0x43e12c
cmp dword [0x50cc40], 0
je 0x43d900
push dword [edi + 0x100]
push str.Open:_Select_File_for_Unit
push str._s_d
lea eax, [ebp - 0x238]
push eax
call fcn.00473670
add esp, 0x10
lea eax, [ebp - 0x238]
mov edx, dword [ebx]
mov edi, eax
jmp 0x43d8a6
mov edx, dword [ebx]
push edi
push 0x100
push edx
call fcn.004ca6a0
add esp, 0xc
test eax, eax
je 0x43d8de
mov ecx, dword [ebx]
cmp byte [ecx], 0
je 0x43d8de
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x43d8d7
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43d8c2
dec eax
mov dword [esi], eax
jmp 0x43e12c
push 0x2134
push str.File_Open_Error
push str.A_File_Must_be_Selected_r_rTerminate_Program_
call fcn.004ca830
add esp, 0xc
cmp eax, 6
je 0x43e13b
jmp 0x43d8a4
push 0
push 0x20b
call fcn.00423010
push eax
push str._s_r_n
lea edx, [ebp - 0x164]
push edx
call fcn.00473670
add esp, 0x14
lea ecx, [ebp - 0x164]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x43d93e
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43d929
dec eax
push dword [edi + 0x100]
push 1
mov edx, eax
push 0x20c
mov dword [ebp - 0x238], edx
call fcn.00423010
mov edx, dword [ebp - 0x238]
push eax
push 0x4e1c20
lea ecx, [ebp - 0x164]
add edx, ecx
push edx
call fcn.00473670
add esp, 0x18
lea ecx, [ebp - 0x164]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x43d992
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43d97d
dec eax
mov dword [ebp - 0x10], eax
cmp dword [edi + 0x100], 6
je 0x43d9bf
push 4
lea eax, [ebp - 0x60]
push eax
lea edx, [ebp - 0x18]
push edx
push 6
call fcn.00426050
add esp, 0x10
test eax, eax
jne 0x43da26
cmp dword [edi + 0x100], 5
je 0x43da0f
push 1
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x14]
push edx
push 5
call fcn.00426050
mov dword [ebp - 0x238], eax
add esp, 0x10
cmp dword [ebp - 0x238], 0
je 0x43da0f
cmp dword [edi + 0x100], 6
je 0x43d9fc
mov eax, dword [ebp - 0x18]
push dword [eax + 0x100]
call fcn.00425a30
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 0x188
call fcn.00428c60
add esp, 0xc
test eax, eax
je 0x43da33
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 0x188
call fcn.00428c60
add esp, 0xc
test eax, eax
je 0x43da57
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push 0x188
push 0
push dword [ebp - 0x1c]
call fcn.004c60d0
push 0x188
push 0
push dword [ebp - 0x20]
call fcn.004c60d0
push 0xcc
push 0
lea eax, [ebp - 0x238]
push eax
call fcn.004c60d0
add esp, 0x24
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [edi + 0x170]
and ecx, 1
mov dword [eax + 0x100], 6
mov eax, dword [ebp - 0x1c]
movzx edx, byte [eax + 0x170]
and edx, 0xfffffffe
or edx, ecx
mov byte [eax + 0x170], dl
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edi + 0x170]
and edx, 2
movzx eax, byte [ecx + 0x170]
and eax, 0xfffffffd
or eax, edx
mov byte [ecx + 0x170], al
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edi + 0x170]
and eax, 4
movzx ecx, byte [edx + 0x170]
and ecx, 0xfffffffb
or ecx, eax
mov byte [edx + 0x170], cl
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [edi + 0x170]
and ecx, 8
movzx eax, byte [edx + 0x170]
and eax, 0xfffffff7
or eax, ecx
mov byte [edx + 0x170], al
mov ecx, dword [ebp - 0x1c]
movzx eax, byte [edi + 0x170]
and eax, 0x20
movzx edx, byte [ecx + 0x170]
and edx, 0xffffffdf
or edx, eax
mov byte [ecx + 0x170], dl
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edi + 0x179]
and edx, 4
movzx eax, byte [ecx + 0x179]
and eax, 0xfffffffb
or eax, edx
mov byte [ecx + 0x179], al
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edi + 0x179]
and eax, 8
movzx ecx, byte [edx + 0x179]
and ecx, 0xfffffff7
or ecx, eax
mov byte [edx + 0x179], cl
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [edi + 0x170]
and ecx, 0x40
movzx eax, byte [edx + 0x170]
and eax, 0xffffffbf
or eax, ecx
mov byte [edx + 0x170], al
mov ecx, dword [ebp - 0x1c]
movzx eax, byte [edi + 0x170]
and eax, 0xffffff80
movzx edx, byte [ecx + 0x170]
and edx, 0x7f
or edx, eax
mov byte [ecx + 0x170], dl
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edi + 0x170]
and edx, 0x10
movzx eax, byte [ecx + 0x170]
and eax, 0xffffffef
or eax, edx
mov byte [ecx + 0x170], al
mov ecx, 0x4e4ca0
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 0x43dc0b
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43dbf6
dec eax
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x238]
mov edx, dword [ebp - 0x1c]
call fcn.0043e358
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x43dc88
push dword [ebp - 0x1c]
call fcn.00428d20
push dword [ebp - 0x20]
call fcn.00428d20
add esp, 8
cmp dword [edi + 0x100], 6
je 0x43dc64
mov eax, dword [ebp - 0x18]
push dword [eax + 0x100]
call fcn.00425a30
add esp, 4
cmp dword [edi + 0x100], 5
je 0x43dc75
mov eax, dword [ebp - 0x14]
push dword [eax + 0x100]
call fcn.00425a30
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 + 0x170]
and ecx, 1
mov dword [eax + 0x100], 5
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x170]
and edx, 0xfffffffe
or edx, ecx
mov byte [eax + 0x170], dl
mov ecx, dword [ebp - 0x20]
movzx edx, byte [edi + 0x170]
and edx, 2
movzx eax, byte [ecx + 0x170]
and eax, 0xfffffffd
or eax, edx
mov byte [ecx + 0x170], al
mov edx, dword [ebp - 0x20]
movzx eax, byte [edi + 0x170]
and eax, 4
movzx ecx, byte [edx + 0x170]
and ecx, 0xfffffffb
or ecx, eax
mov byte [edx + 0x170], cl
mov edx, dword [ebp - 0x20]
movzx ecx, byte [edi + 0x170]
and ecx, 8
movzx eax, byte [edx + 0x170]
and eax, 0xfffffff7
or eax, ecx
mov byte [edx + 0x170], al
mov ecx, dword [ebp - 0x20]
movzx eax, byte [edi + 0x170]
and eax, 0x20
movzx edx, byte [ecx + 0x170]
and edx, 0xffffffdf
or edx, eax
mov byte [ecx + 0x170], dl
mov ecx, dword [ebp - 0x20]
movzx edx, byte [edi + 0x179]
and edx, 4
movzx eax, byte [ecx + 0x179]
and eax, 0xfffffffb
or eax, edx
mov byte [ecx + 0x179], al
mov edx, dword [ebp - 0x20]
movzx eax, byte [edi + 0x179]
and eax, 8
movzx ecx, byte [edx + 0x179]
and ecx, 0xfffffff7
or ecx, eax
mov byte [edx + 0x179], cl
mov edx, dword [ebp - 0x20]
movzx ecx, byte [edi + 0x170]
and ecx, 0x40
movzx eax, byte [edx + 0x170]
and eax, 0xffffffbf
or eax, ecx
mov byte [edx + 0x170], al
mov ecx, dword [ebp - 0x20]
movzx eax, byte [edi + 0x170]
and eax, 0xffffff80
movzx edx, byte [ecx + 0x170]
and edx, 0x7f
or edx, eax
mov byte [ecx + 0x170], dl
mov ecx, dword [ebp - 0x20]
movzx edx, byte [edi + 0x170]
and edx, 0x10
movzx eax, byte [ecx + 0x170]
and eax, 0xffffffef
or eax, edx
mov byte [ecx + 0x170], al
mov ecx, 0x4e4ca8
mov dword [ebp - 0x20c], ecx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x43dded
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43ddd8
dec eax
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x238]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x228], 0
call fcn.0043e358
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
jne 0x43e2e7
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x15e], 3
mov edx, dword [ebp - 0x1c]
or byte [edx + 0x175], 0x40
cmp dword [esi], 0
jne 0x43e0d1
mov dword [ebp - 0x64], edi
push 0
mov edi, dword [ebp - 0x1c]
push edi
call fcn.0042b1c0
add esp, 8
test eax, eax
jne 0x43e262
movsx ecx, byte [edi + 0x15c]
lea eax, [ecx - 1]
cmp eax, 7
ja case.default.0x43de67
jmp dword [eax*4 + 0x4e7980]
mov edx, dword [edi + 0x40]
test edx, edx
je 0x43de7a
mov dword [edi + 0x3c], edx
jmp 0x43de80
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 + 0x170]
jmp 0x43dfb3
mov eax, dword [edi + 0x18]
test eax, eax
je 0x43e14c
test byte [eax + 0x44], 2
je 0x43ded9
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 0x43dec7
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 + 0x174]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.0042e140
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 0x43df0f
add edx, 4
jmp 0x43df15
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 + 0x170]
jmp 0x43dfb3
mov edx, dword [edi + 0x40]
test edx, edx
je 0x43df3d
mov dword [edi + 0x3c], edx
jmp 0x43df43
mov edx, dword [edi + 0x38]
mov dword [edi + 0x3c], edx
mov eax, dword [edi + 0xf8]
mov dword [ebp - 0x16c], eax
add eax, edx
mov dword [ebp - 0x168], eax
movzx eax, byte [edi + 0x170]
test al, 4
je 0x43df79
test byte [edi + 0x172], 0x40
je 0x43df79
test byte [edi + 0x173], 8
je 0x43df79
cmp ecx, 1
je 0x43df84
mov ecx, dword [ebp - 0x168]
mov dword [edi + 0x44], ecx
jmp 0x43dfb3
mov ecx, dword [ebp - 0x16c]
lea ecx, [edx + ecx - 2]
mov dword [edi + 0x44], ecx
jmp 0x43dfb3
push 0x1640
push str.for_nt_open_proc.c
push 2
push 8
call fcn.004220a0
add esp, 0x10
movzx eax, byte [edi + 0x170]
mov edx, dword [edi + 0x3c]
test al, 4
je 0x43dfd2
test byte [edi + 0x172], 0x40
je 0x43dfd2
test byte [edi + 0x173], 8
je 0x43dfd2
cmp byte [edi + 0x15c], 1
je 0x43e01d
movsx eax, byte [edi + 0x15e]
cmp eax, 2
jne 0x43dff9
movsx eax, byte [edi + 0x15c]
cmp eax, 7
je 0x43e01d
cmp eax, 6
je 0x43e01d
cmp eax, 8
je 0x43e01d
dec dword [edi + 0x44]
jmp 0x43e01d
cmp eax, 1
jne 0x43e01d
movsx eax, byte [edi + 0x15c]
cmp eax, 7
je 0x43e017
cmp eax, 6
je 0x43e017
cmp eax, 8
je 0x43e017
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.004c6120
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
add dword [edx + 0x3c], eax
push dword [ebp - 0x1c]
call fcn.00429e20
add esp, 0x10
test eax, eax
jne 0x43e1f3
xor eax, eax
push eax
push eax
push dword [ebp - 0x20]
call fcn.00455f90
add esp, 0xc
test eax, eax
jne 0x43e184
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.004c6120
add esp, 0xc
mov edx, dword [ebx]
mov byte [edx + edi], 0
cmp byte [edx], 0x20
jne 0x43e0a2
test edi, edi
jle 0x43e177
inc edx
dec edi
mov dword [ebx], edx
cmp byte [edx], 0x20
je 0x43e091
test edi, edi
jle 0x43e177
test byte [edi + edx - 1], 0xdf
jne 0x43e16b
dec edi
test edi, edi
jg 0x43e0aa
lea esi, [esi]
lea edi, [edi]
mov dword [esi], edi
je 0x43de3e
mov edi, dword [ebp - 0x64]
push 0
push dword [ebp - 0x1c]
call fcn.00435fb0
push 0
push dword [ebp - 0x20]
call fcn.00435fb0
push dword [ebp - 0x1c]
call fcn.00428d20
push dword [ebp - 0x20]
call fcn.00428d20
add esp, 0x18
cmp dword [edi + 0x100], 6
je 0x43e11b
mov eax, dword [ebp - 0x18]
push dword [eax + 0x100]
call fcn.00425a30
add esp, 4
cmp dword [edi + 0x100], 5
je 0x43e12c
mov eax, dword [ebp - 0x14]
push dword [eax + 0x100]
call fcn.00425a30
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.004ca970
push 1
call fcn.004757f0
add esp, 8
push edi
mov eax, 0x2c
push eax
push eax
push 1
call fcn.0041fff0
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 0x43e0d1
mov dword [esi], edi
je 0x43de3e
jmp 0x43e0ce
push 0
push dword [ebp - 0x1c]
mov ebx, eax
mov edi, dword [ebp - 0x64]
call fcn.00435fb0
push 0
push dword [ebp - 0x20]
call fcn.00435fb0
push dword [ebp - 0x1c]
call fcn.00428d20
push dword [ebp - 0x20]
call fcn.00428d20
add esp, 0x18
cmp dword [edi + 0x100], 6
je 0x43e1d3
mov edx, dword [ebp - 0x18]
push dword [edx + 0x100]
call fcn.00425a30
add esp, 4
cmp dword [edi + 0x100], 5
je 0x43e1e4
mov edx, dword [ebp - 0x14]
push dword [edx + 0x100]
call fcn.00425a30
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.00435fb0
push 0
push dword [ebp - 0x20]
call fcn.00435fb0
push dword [ebp - 0x1c]
call fcn.00428d20
push dword [ebp - 0x20]
call fcn.00428d20
add esp, 0x18
cmp dword [edi + 0x100], 6
je 0x43e242
mov edx, dword [ebp - 0x18]
push dword [edx + 0x100]
call fcn.00425a30
add esp, 4
cmp dword [edi + 0x100], 5
je 0x43e253
mov edx, dword [ebp - 0x14]
push dword [edx + 0x100]
call fcn.00425a30
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 0x43e2c8
test byte [eax + 0x44], 2
je 0x43e29e
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 0x43e28c
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 + 0x174]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.0042e140
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.0041fff0
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.00435fb0
push dword [ebp - 0x1c]
call fcn.00428d20
push dword [ebp - 0x20]
call fcn.00428d20
add esp, 0x10
cmp dword [edi + 0x100], 6
je 0x43e327
mov eax, dword [ebp - 0x18]
push dword [eax + 0x100]
call fcn.00425a30
add esp, 4
cmp dword [edi + 0x100], 5
je 0x43e338
mov eax, dword [ebp - 0x14]
push dword [eax + 0x100]
call fcn.00425a30
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