Function at 0x40e280
Capabilities:
Delete file
Impersonate user
Resolve dns
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x468f54
mov eax, dword fs:[0]
push eax
sub esp, 0x53c
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x538], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x550]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x34]
mov edi, dword [eax + 0x44]
lea ecx, [esi + 0xb0]
mov dword [esp + 0x38], edi
call fcn.00401690
xor ebp, ebp
cmp dword [edi + 0x40], ebp
je 0x40e32d
push ebp
push ebp
push ebp
push 0x401
lea ecx, [esp + 0x158]
push ecx
push 0x1c
lea edx, [esi + 0x54]
push edx
mov byte [esp + 0x164], 0
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x40e32d
lea eax, [esp + 0x148]
lea edx, [eax + 1]
jmp 0x40e310
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e310
sub eax, edx
push eax
lea eax, [esp + 0x14c]
push eax
lea ecx, [esi + 0xb0]
call fcn.00401b90
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
mov ecx, esi
call eax
test eax, eax
jne 0x40e34d
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 0x190
mov ecx, esi
call eax
jmp 0x40eae7
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x50]
call fcn.0043743f
mov edx, dword [esp + 0x44]
push 0x21
lea ecx, [esi + 0xf8]
push edx
mov dword [esp + 0x560], ebp
call fcn.004063f0
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x40e412
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00432e51
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40e3a5
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push edi
lea ecx, [esp + 0x18]
push str.CW3MFCClient::HandleClient__Failed_in_call_to_WSAEventSelect__GetLastError:_d
push ecx
mov byte [esp + 0x564], 1
call fcn.00401f50
mov esi, dword [esi + 0x34]
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x558], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ead3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40ead3
lea ecx, [esp + 0x54]
call fcn.004169f0
push ebp
push ebp
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0x564], 2
call fcn.00416ad0
test eax, eax
je 0x40e441
mov ecx, dword [edi + 0x28]
push ecx
lea ecx, [esp + 0x58]
call fcn.00416b30
mov dword [esi + 0xf4], ebp
lea eax, [esi + 0x38]
cmp dword [esp + 0x58], ebp
je 0x40e479
mov edx, dword [esp + 0x44]
mov ecx, dword [esi + 0x118]
push edx
mov edx, dword [edi + 0x28]
push ecx
lea ecx, [esp + 0x5c]
push ecx
push esi
push 0x1000
push edx
push eax
lea ecx, [esi + 0xf8]
call fcn.00416310
jmp 0x40e48f
mov ecx, dword [edi + 0x28]
push esi
push 0x1000
push ecx
push eax
lea ecx, [esi + 0xf8]
call fcn.00416690
cmp eax, ebp
je 0x40e8ec
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
test eax, eax
je 0x40e8de
cmp dword [edi + 0x58], ebp
je 0x40e4bc
cmp dword [esi + 0xb8], ebp
je 0x40e4bc
mov eax, 1
jmp 0x40e4be
xor eax, eax
mov dword [esi + 0xf4], eax
mov dword [esp + 0x14], ebp
mov ecx, 1
mov byte [esp + 0x558], 3
cmp dword [esi + 0xa4], ecx
jne 0x40e68c
cmp dword [edi + 0x74], ebp
je 0x40e68c
mov eax, dword [esi + 0xa8]
sub ecx, dword [eax - 4]
mov edx, dword [esi + 0xa8]
mov edx, dword [edx - 0xc]
lea ebp, [esi + 0xa8]
sub eax, 0x10
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x40e516
push edx
mov ecx, ebp
call fcn.004017a0
mov eax, dword [esi + 0xac]
mov edx, dword [eax - 0xc]
mov ebx, dword [ebp]
lea edi, [esi + 0xac]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x40e544
push edx
mov ecx, edi
call fcn.004017a0
mov eax, dword [edi]
lea ecx, [esp + 0x14]
push ecx
push 0
push 3
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
je 0x40e5c3
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov dword [esi + 0xc4], eax
test eax, eax
jne 0x40e625
lea ecx, [esp + 0x2c]
call fcn.00401850
mov byte [esp + 0x558], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
lea eax, [esp + 0x34]
push str.CW3MFCClient::HandleClient__Failed_to_impersonate_using_user_name:__s__GetLastError:_d
push eax
call fcn.00401f50
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
add esp, 0x10
lea eax, [esp + 0x2c]
push eax
call edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x558], 3
call fcn.004018a0
jmp 0x40e625
lea ecx, [esp + 0x24]
call fcn.00401850
mov byte [esp + 0x558], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
lea eax, [esp + 0x2c]
push str.CW3MFCClient::HandleClient__Failed_to_logon_using_user_name:__s__GetLastError:_d
push eax
call fcn.00401f50
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
add esp, 0x10
lea eax, [esp + 0x24]
push eax
call edx
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x558], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e625
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40e641
push ecx
push eax
call fcn.00450e3f
add esp, 8
test eax, eax
jl 0x40eab8
mov ecx, dword [ebp]
cmp eax, dword [ecx - 8]
jg 0x40eab8
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp]
mov byte [eax + ecx], 0
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40e672
push ecx
push eax
call fcn.00450e3f
add esp, 8
test eax, eax
jl 0x40eab8
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x40eab8
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
mov edi, dword [esp + 0x38]
mov byte [eax + edx], 0
xor ebp, ebp
mov ecx, dword [esi + 0xa4]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xf0], eax
cmp ecx, ebp
jne 0x40e70a
cmp dword [edi + 0x68], ebp
jne 0x40e70a
cmp dword [edi + 0x6c], ebp
jne 0x40e6f8
cmp dword [edi + 0x70], ebp
jne 0x40e6f8
push str.CW3MFCClient::HandleClient__Anonymous_access_is_disabled_in_addition_to_all_authentication_mechanisms__All_requests_will_Fail__
lea ecx, [esp + 0x40]
call fcn.00402600
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x55c], 6
call edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x558], 3
call fcn.004018a0
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push 0x1f4
mov ecx, esi
call edx
jmp 0x40e8b6
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
lea ecx, [esi + 0x78]
push ecx
mov ecx, esi
call edx
jmp 0x40e8b6
mov eax, dword [esi + 0x70]
cmp eax, 1
je 0x40e845
cmp eax, 2
je 0x40e845
cmp eax, ebp
je 0x40e845
cmp dword [edi + 0x60], ebp
je 0x40e835
cmp eax, 5
jne 0x40e835
cmp ecx, ebp
je 0x40e815
lea ecx, [esp + 0x50]
call fcn.00401850
mov eax, dword [esi]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [eax + 0x60]
lea ecx, [esi + 0x80]
push ecx
lea edi, [esi + 0xd0]
push edi
lea ebx, [esi + 0x78]
push ebx
mov ecx, esi
mov byte [esp + 0x574], 7
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebp
call edx
test eax, eax
je 0x40e7f9
cmp dword [esp + 0x20], ebp
jne 0x40e7f9
mov eax, dword [esp + 0x34]
cmp dword [eax + 0x18], ebp
je 0x40e7f9
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40e7c9
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push edi
mov ecx, esi
call eax
lea ecx, [esp + 0x50]
call fcn.004018a0
jmp 0x40e8b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40e7f2
cmp dword [esp + 0x20], ebp
jne 0x40e7f2
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
push ebx
mov ecx, esi
call eax
lea ecx, [esp + 0x50]
call fcn.004018a0
jmp 0x40e8b6
push 0x1f4
jmp 0x40e7fe
push 0x194
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
lea ecx, [esp + 0x50]
call fcn.004018a0
jmp 0x40e8b6
cmp dword [edi + 0x6c], ebp
jne 0x40e823
cmp dword [edi + 0x70], ebp
je 0x40e8a8
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
lea eax, [esi + 0x78]
push eax
mov ecx, esi
call edx
jmp 0x40e8b6
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push 0x1f5
mov ecx, esi
call edx
jmp 0x40e8b6
mov eax, dword [esi]
mov edx, dword [eax + 0x64]
mov ecx, esi
call edx
test eax, eax
jne 0x40e8b6
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esi + 0x80]
push ecx
lea edx, [esi + 0xd0]
push edx
mov edx, dword [eax + 0x60]
lea ecx, [esi + 0x78]
push ecx
mov ecx, esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], ebp
call edx
test eax, eax
je 0x40e8a8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
push esi
call eax
jmp 0x40e8b6
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 0x194
mov ecx, esi
call eax
cmp dword [esi + 0xa4], 1
jne 0x40e8c5
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x558], 2
cmp eax, ebp
je 0x40e8ec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e8ec
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 0x190
mov ecx, esi
call eax
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0xf4]
mov edx, dword [esi + 0xa4]
mov ebx, dword [esi + 0xc8]
sub eax, 0x10
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], edx
call fcn.00401290
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xa8]
lea edi, [esi + 0xa8]
sub eax, 0x10
push eax
mov byte [esp + 0x560], 8
call fcn.00401290
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xcc]
lea ebp, [esi + 0xcc]
sub eax, 0x10
push eax
mov byte [esp + 0x564], 9
call fcn.00401290
add eax, 0x10
add esp, 0xc
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x5c]
mov dword [esp + 0x138], eax
mov eax, dword [esi + 0x60]
mov dword [esp + 0x13c], ecx
push 0x35
lea ecx, [esp + 0x80]
mov byte [esp + 0x55c], 0xa
mov dword [esp + 0x144], edx
mov dword [esp + 0x148], eax
call fcn.004149d0
push eax
lea ecx, [esi + 0x38]
mov byte [esp + 0x55c], 0xb
call fcn.00414d30
lea ecx, [esp + 0x7c]
mov byte [esp + 0x558], 0xa
call fcn.0040c700
cmp dword [esp + 0x28], 2
mov dword [esi + 0xc8], ebx
jne 0x40e9f6
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov dword [esi + 0xa4], 2
call fcn.004042c0
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
call fcn.004042c0
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x13c]
mov edx, dword [esp + 0x140]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x144]
mov dword [esi + 0x58], ecx
lea ecx, [esp + 0x14]
push ecx
mov dword [esi + 0x5c], edx
lea ecx, [esi + 0xb0]
mov dword [esi + 0x60], eax
call fcn.004042c0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x558], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ea56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x558], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x558], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eaa6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x30], 0
je 0x40eac2
mov edi, dword [esp + 0x38]
xor ebp, ebp
jmp 0x40e441
push 0x80070057
call fcn.00401090
lea ecx, [esp + 0x54]
mov byte [esp + 0x558], 0
call fcn.00416aa0
lea ecx, [esp + 0x40]
mov dword [esp + 0x558], 0xffffffff
call fcn.0043748a
mov ecx, dword [esp + 0x550]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x538]
xor ecx, esp
call fcn.004517f0
add esp, 0x548
ret