Function at 0x4487a0
Capabilities:
Delete file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
xor eax, eax
push esi
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx]
xor edx, edx
xor esi, esi
test byte [ecx + 0x108], 4
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
mov edi, 0x5118be
mov dword [esp + 0x14], eax
jne 0x44882e
mov eax, dword [ebp + 0xc]
add eax, 8
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4487e8
sub eax, esi
jne 0x44882e
cmp dword [0x5426d0], 1
jb 0x448a23
push 0x3000021
call fcn.00408960
add esp, 4
test eax, eax
je 0x448a23
push str.TLS_Auth_Error:_peer_provided_a_blank_username
push 0x3000021
call fcn.00408640
add esp, 8
jmp 0x448a23
mov eax, dword [ecx + 0x100]
push str.user_pass_verify
push eax
mov eax, str.script_type
call fcn.0041a7f0
mov eax, dword [ebx]
add esp, 8
cmp dword [eax + 0xf4], 0
je 0x448ac6
mov ecx, dword [eax + 0xf8]
push ecx
lea edi, [esp + 0x14]
mov ecx, 0x513538
call fcn.0041ab20
xor edi, edi
add esp, 4
xor esi, esi
cmp eax, edi
mov dword [esp + 0xc], eax
je 0x4489b8
push 0x40
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x448894
jmp fcn.00408a80
push 0x40
push edi
push esi
call sub.MSVCR80.dll_memset
mov dword [esi], 2
mov dword [esi + 0x10], edi
or eax, 0xffffffff
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, dword [esi]
add esp, 0xc
sub eax, 1
je 0x448923
sub eax, 1
je 0x448912
sub eax, 1
je 0x448901
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x44893a
push 0x6b
push str.._status.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
jmp 0x44893a
mov edx, dword [esp + 0xc]
push 0x180
push 0x102
push edx
jmp 0x44892e
mov eax, dword [esp + 0xc]
push 0x180
push 0x301
push eax
jmp 0x44892e
mov ecx, dword [esp + 0xc]
push 0x180
push edi
push ecx
call dword [sym.imp.MSVCR80.dll__open]
add esp, 0xc
mov dword [esi + 8], eax
cmp dword [esi + 8], edi
jl 0x448a6c
mov eax, dword [esp + 0xc]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x448950
sub eax, edx
lea ebx, [eax + 1]
push ebx
call dword [sym.imp.MSVCR80.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x448973
jmp fcn.00408a80
mov edx, dword [esp + 0xc]
push ebx
push edx
push edi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
test byte [esi], 1
mov dword [esi + 4], edi
je 0x4489b5
mov edi, 0x200
push edi
xor ebx, ebx
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
jne 0x4489a4
jmp fcn.00408a80
mov byte [eax], 0
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], ebx
xor ecx, ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea ecx, [edi + 8]
push ecx
push 0x5103a4
mov ecx, esi
call fcn.0044c8b0
add edi, 0x1008
push edi
push 0x5103a4
mov ecx, esi
call fcn.0044c8b0
add esp, 0x10
call fcn.0044c840
test eax, eax
jne 0x448afd
cmp dword [0x5426d0], 1
jb 0x448a1f
push 0x3000021
call fcn.00408960
add esp, 4
test eax, eax
je 0x448a1f
mov edx, dword [esp + 0xc]
push edx
push str.TLS_Auth_Error:_could_not_write_username_password_to_file:__s
push 0x3000021
call fcn.00408640
add esp, 0xc
mov edi, dword [esp + 0xc]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x448a28
sub eax, edx
je 0x448a3c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [esp + 0x18]
call fcn.0041bb40
mov eax, dword [esp + 0x10]
test eax, eax
je 0x448a61
mov edi, dword [sym.imp.MSVCR80.dll_free]
mov esi, dword [eax]
push eax
call edi
add esp, 4
test esi, esi
mov eax, esi
jne 0x448a53
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x40
call fcn.00408960
add esp, 4
test eax, eax
je 0x448aba
mov eax, dword [esi]
sub eax, 1
je 0x448aa0
sub eax, 1
je 0x448a99
sub eax, 1
je 0x448a92
mov eax, str.UNDEF
jmp 0x448aa5
mov eax, str.READ_WRITE
jmp 0x448aa5
mov eax, str.WRITE
jmp 0x448aa5
mov eax, str.READ
push eax
mov eax, dword [esp + 0x10]
push eax
push str.Note:_cannot_open__s_for__s
push 0x40
call fcn.00408640
add esp, 0x10
mov dword [esi + 0x38], 1
jmp 0x4489b8
mov esi, dword [ebp + 0xc]
mov edx, dword [eax + 0x100]
lea ecx, [esi + 8]
push ecx
push edx
mov eax, str.username
call fcn.0041a7f0
mov eax, dword [ebx]
mov ecx, dword [eax + 0x100]
add esi, 0x1008
push esi
push ecx
mov eax, str.password
call fcn.0041a7f0
add esp, 0x10
jmp 0x448b01
mov edi, dword [esp + 0xc]
mov eax, dword [ebx]
mov edx, dword [ebx + 0x68]
mov ecx, dword [eax + 0x100]
push edx
push ecx
mov eax, str.common_name
call fcn.0041a7f0
mov edx, dword [ebx]
mov eax, dword [edx + 0x100]
push 1
push str.untrusted
lea ecx, [ebx + 0x74]
push eax
call fcn.00442160
mov ecx, dword [ebx]
mov edx, dword [ecx + 0xf0]
add esp, 0x14
push edi
push edx
push str._sc__s
lea ecx, [esp + 0x24]
call fcn.0041c2c0
mov eax, dword [ebx]
mov eax, dword [eax + 0x100]
add esp, 0xc
push 1
lea ecx, [esp + 0x1c]
call fcn.00453c60
add esp, 4
test eax, eax
jne 0x448b72
mov dword [esp + 0x14], 1
jmp 0x448b8e
cmp eax, 0xffffffff
jne 0x448b8e
lea ecx, [esp + 0x18]
push str.TLS_Auth_Error:_user_pass_verify_script_failed_to_execute
push ecx
mov eax, 0x3000021
call fcn.0041c240
add esp, 8
mov ebx, dword [ebx]
cmp dword [ebx + 0xf4], 0
jne 0x448a23
mov edx, dword [ebx + 0x100]
push edx
mov esi, str.password
call fcn.0041a7a0
add esp, 4
jmp 0x448a23