Function at 0x41b2e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x4c0120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi + 0xc]
cmp al, 0x34
push edi
mov dword [ebp - 0xe0], 0
mov ebx, 1
jne 0x41b384
cmp byte [esi + 0xe], bl
jne 0x41b355
cmp dword [0x508130], ebx
jl 0x41b384
call fcn.0044c570
mov dword [0x4bef48], ebx
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x10]
mov eax, dword [edx]
push ecx
push str.NiICloseHandle
push str._s:_called_for_hdl__d_while_waiting_for_connection_n
push eax
call fcn.0044deb0
mov edi, 2
add esp, 0x10
mov dword [0x4bef48], edi
call fcn.0044c580
jmp 0x41b389
cmp dword [0x508130], 2
jl 0x41b384
call fcn.0044c570
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x10]
mov eax, dword [edx]
push ecx
push str.NiICloseHandle
push str._s:_called_for_hdl__d_while_waiting_for_connection_n
push eax
call fcn.0044deb0
add esp, 0x10
call fcn.0044c580
mov edi, 2
mov cl, byte [esi + 0xc]
cmp cl, bl
je 0x41b53a
mov dl, byte [esi + 0xc]
cmp dl, 2
je 0x41b53a
mov al, byte [esi + 0xc]
cmp al, 3
je 0x41b53a
mov cl, byte [esi + 0xc]
cmp cl, 0x11
jne 0x41b43c
cmp byte [esi + 0xe], bl
jne 0x41b402
cmp dword [0x508130], ebx
jl 0x41b5a1
call fcn.0044c570
mov dword [0x4bef48], ebx
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi + 0x10]
push eax
mov eax, dword [edx]
push ecx
push str.NiICloseHandle
push str._s:_shutdown_and_close_hdl__d_sock__d___sock__d_n
push eax
call fcn.0044deb0
add esp, 0x18
mov dword [0x4bef48], edi
jmp 0x41b59c
cmp dword [0x508130], edi
jl 0x41b5a1
call fcn.0044c570
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [ecx]
push eax
push str.NiICloseHandle
push str._s:_shutdown_and_close_hdl__d_sock__d___sock__d_n
push edx
call fcn.0044deb0
add esp, 0x18
jmp 0x41b59c
mov al, byte [esi + 0xc]
cmp al, 0x22
jne 0x41b4c0
cmp byte [esi + 0xe], bl
jne 0x41b48a
cmp dword [0x508130], ebx
jl 0x41b5a1
call fcn.0044c570
mov dword [0x4bef48], ebx
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
push ecx
mov ecx, dword [eax]
push edx
push str.NiICloseHandle
push str._s:_shutdown_and_close_pseudo_listen_hdl__d_sock__d_n
push ecx
call fcn.0044deb0
add esp, 0x14
mov dword [0x4bef48], edi
jmp 0x41b59c
cmp dword [0x508130], edi
jl 0x41b5a1
call fcn.0044c570
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [ecx]
push eax
push str.NiICloseHandle
push str._s:_shutdown_and_close_pseudo_listen_hdl__d_sock__d_n
push edx
call fcn.0044deb0
add esp, 0x14
jmp 0x41b59c
cmp byte [esi + 0xe], bl
jne 0x41b507
cmp dword [0x508130], ebx
jl 0x41b5a1
call fcn.0044c570
mov dword [0x4bef48], ebx
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x10]
push eax
mov eax, dword [edx]
push ecx
push str.NiICloseHandle
push str._s:_shutdown_and_close_hdl__d_sock__d_n
push eax
call fcn.0044deb0
add esp, 0x14
mov dword [0x4bef48], edi
jmp 0x41b59c
cmp dword [0x508130], edi
jl 0x41b5a1
call fcn.0044c570
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
push ecx
mov ecx, dword [eax]
push edx
push str.NiICloseHandle
push str._s:_shutdown_and_close_hdl__d_sock__d_n
push ecx
call fcn.0044deb0
add esp, 0x14
jmp 0x41b59c
cmp byte [esi + 0xe], bl
jne 0x41b573
cmp dword [0x508130], ebx
jl 0x41b5a1
call fcn.0044c570
mov dword [0x4bef48], ebx
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push edx
push str.NiICloseHandle
push str._s:_closing_initial_hdl__d_n
push ecx
call fcn.0044deb0
mov dword [0x4bef48], edi
jmp 0x41b599
cmp dword [0x508130], edi
jl 0x41b5a1
call fcn.0044c570
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push edx
push str.NiICloseHandle
push str._s:_closing_initial_hdl__d_n
push ecx
call fcn.0044deb0
add esp, 0x10
call fcn.0044c580
mov dl, byte [esi + 0xc]
and dl, 0xf
cmp dl, bl
jne 0x41b6d3
cmp dword [esi + 0x20], 0xffffffff
lea edi, [esi + 0x20]
je 0x41b5fd
push edi
call fcn.00423b90
add esp, 4
cmp eax, 5
je 0x41b5b8
test eax, eax
je 0x41b5f7
mov ecx, dword [esi + 0x2c]
push ebx
push 0x243
push str.nixxi.cpp
push str.NiICloseHandle
push 0
push 0
push 0
push ecx
push edi
push esi
push 7
push eax
call fcn.00417530
add esp, 0x30
mov dword [ebp - 0xe0], eax
mov dword [edi], 0xffffffff
cmp dword [esi + 0x30], 0xffffffff
lea edi, [esi + 0x30]
je 0x41b784
cmp byte [ebp + 0xc], bl
jne 0x41b6c0
push 0
push 0x6c
lea edx, [ebp - 0x70]
push edx
push edi
call fcn.00422280
add esp, 0x10
cmp eax, 5
je 0x41b613
test eax, eax
jne 0x41b6c0
cmp byte [ebp - 0x70], al
je 0x41b6c0
lea eax, [ebp - 0xdc]
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x70]
push ecx
push edi
push esi
call fcn.00414ba0
lea edx, [ebp - 0xdc]
push edx
call dword [sym.imp.MSVCR80.dll_remove]
add esp, 0x28
cmp eax, 0xffffffff
jne 0x41b6c0
call dword [sym.imp.MSVCR80.dll__errno]
cmp dword [eax], 2
je 0x41b6c0
cmp dword [0x508130], ebx
jl 0x41b6c0
call fcn.0044c570
push 0x265
push str.nixxi.cpp
call fcn.0044c350
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x10]
push eax
mov eax, dword [edx]
lea ecx, [ebp - 0xdc]
push ecx
push str.NiICloseHandle
push str._s:_remove__s_failed_for_hdl__d_n
push eax
call fcn.0044df70
add esp, 0x1c
call fcn.0044c580
lea ebx, [ebx]
push edi
call fcn.00423b90
add esp, 4
cmp eax, 5
je 0x41b6c0
jmp 0x41b784
mov cl, byte [esi + 0xc]
and cl, 0xf
cmp cl, 2
jne 0x41b6f2
push esi
call fcn.00431e30
add esp, 4
mov dword [ebp - 0xe0], eax
jmp 0x41b784
mov eax, dword [esi + 0x80]
test eax, eax
je 0x41b70b
mov edx, dword [esi + 0x84]
push eax
mov eax, dword [edx]
push esi
call eax
add esp, 8
cmp byte [esi + 0x5e], bl
jne 0x41b715
call fcn.00415b40
cmp dword [esi + 0x34], 0xffffffff
lea edi, [esi + 0x34]
je 0x41b768
mov edi, edi
push edi
call fcn.00423b90
add esp, 4
cmp eax, 5
je 0x41b720
xor ecx, ecx
cmp eax, ecx
je 0x41b760
push ebx
push 0x28f
push str.nixxi.cpp
push str.NiICloseHandle
push ecx
push ecx
push ecx
mov ecx, dword [esi + 0x40]
push ecx
push edi
push esi
push 7
push eax
call fcn.00417530
add esp, 0x30
mov dword [ebp - 0xe0], eax
xor ecx, ecx
mov dword [edi], 0xffffffff
jmp 0x41b76a
xor ecx, ecx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x54], ecx
mov byte [esi + 0x4c], 0
mov byte [esi + 0x58], 0
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], ecx
mov dl, byte [esi + 0xc]
test dl, dl
je 0x41b849
mov ecx, esi
sub ecx, dword [0x4c042c]
mov eax, 0x78787879
imul ecx
sar edx, 6
mov eax, edx
mov byte [esi + 0xc], 0
mov ecx, dword [0x4c03b8]
shr eax, 0x1f
add eax, edx
mov edx, dword [ecx + 0x14]
imul edx, eax
add edx, dword [ecx + 0x24]
lea eax, [edx + ecx - 8]
mov edx, dword [eax + 4]
test edx, edx
je 0x41b7d1
mov edi, dword [eax]
mov dword [edx + ecx], edi
mov ecx, dword [0x4c03b8]
mov edx, dword [eax]
test edx, edx
je 0x41b7e0
mov edi, dword [eax + 4]
mov dword [edx + ecx + 4], edi
jmp 0x41b7e6
mov edx, dword [eax + 4]
mov dword [ecx + 0x18], edx
mov ecx, dword [0x4c03b8]
mov edx, dword [ecx + 0x1c]
mov dword [eax + 4], edx
mov ecx, dword [0x4c03b8]
sub eax, ecx
mov dword [ecx + 0x1c], eax
mov eax, dword [esi]
test eax, eax
je 0x41b809
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x41b82b
mov edx, dword [esi]
pop edi
pop esi
mov dword [eax], edx
mov eax, dword [ebp - 0xe0]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
pop edi
pop esi
mov dword [0x4c0438], eax
mov eax, dword [ebp - 0xe0]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
cmp dword [0x508130], ebx
jl 0x41b88d
call fcn.0044c570
push 0x2b5
push str.nixxi.cpp
call fcn.0044c350
mov ecx, dword [ebp - 0xe0]
mov edx, dword [esi + 8]
mov eax, dword [0x508154]
push ecx
push edx
push str.NiICloseHandle
push str._s:_hdl__d_closed_in_the_meantime__race___old_rc_d__n
push eax
call fcn.0044df50
add esp, 0x1c
call fcn.0044c580
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0xfffffff8
pop ebx
call fcn.00455bf8
mov esp, ebp
pop ebp
ret