Function at 0x40d320
Capabilities:
Check if file exists
Delete file
Get file attributes
Get graphical window text
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x43a9f6
push eax
mov eax, 0x42e0
mov dword fs:[0], esp
call fcn.0041c410
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [0x44cb68]
xor ebp, ebp
mov dword [esp + 0x42f8], ebp
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
mov ebx, 1
push ecx
mov byte [esp + 0x42fc], bl
call fcn.0042b0d1
mov edx, dword [eax]
lea eax, [esp + 0x10]
push 0x44b390
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], edx
call fcn.0042b0e4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x42fc], 2
call fcn.00430a37
lea ecx, [esp + 0x10]
mov byte [esp + 0x42f8], bl
call fcn.00430942
mov edi, dword [esp + 0x4300]
mov dword [edi*4 + 0x45c7b4], ebx
mov eax, dword [esi + edi*4 + 0xe98]
cmp eax, ebp
jne 0x40d8c9
push 0x14
call fcn.0042f5bf
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebp
mov byte [esp + 0x42f8], 3
je 0x40d3e8
mov ecx, eax
call fcn.00407780
jmp 0x40d3ea
xor eax, eax
push ebp
push 0x3f
push ebx
push ebp
mov ecx, eax
mov byte [esp + 0x4308], bl
mov dword [esi + edi*4 + 0xe98], eax
call fcn.004384a8
test eax, eax
je 0x40d9e4
cmp dword [esi + 0x1890], ebp
je 0x40d54f
mov eax, dword [0x45b730]
mov ecx, dword [esi + 0x1894]
push eax
push ecx
call fcn.0041c0d2
add esp, 8
test eax, eax
je 0x40d54f
mov eax, dword [esi + 0x1894]
mov ecx, dword [esi + edi*4 + 0xe98]
push 0x370
push eax
call fcn.00438600
test eax, eax
je 0x40d92d
mov ecx, dword [0x44cb68]
mov dword [esp + 0x10], ecx
lea ebp, [esi + 0x146c]
lea edx, [esp + 0x10]
push edx
mov ecx, ebp
mov byte [esp + 0x42fc], 4
call fcn.0042cfea
lea eax, [esp + 0x14]
push 0x44c2a4
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00430b93
lea edx, [edi*4 + 0x45b280]
mov byte [esp + 0x42f8], 5
push edx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00430b2d
push 0x44c278
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x4304], 6
call fcn.00430b93
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x42fc], 7
call fcn.00430d16
lea ecx, [esp + 0x1c]
mov byte [esp + 0x42f8], 6
call fcn.00430942
lea ecx, [esp + 0x20]
mov byte [esp + 0x42f8], 5
call fcn.00430942
lea ecx, [esp + 0x18]
mov byte [esp + 0x42f8], 4
call fcn.00430942
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
call fcn.0042ee92
mov eax, dword [esi + 0x1488]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xba
push eax
call edi
mov ecx, dword [esi + 0x1488]
push eax
push 0
push 0xb6
push ecx
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x42f8], bl
call fcn.00430942
jmp 0x40d9e4
call fcn.0041bfd4
lea eax, [eax + eax*2]
cdq
and edx, 0x7fff
add eax, edx
sar eax, 0xf
cmp eax, ebx
jne 0x40d684
mov edx, dword [0x45b730]
mov ecx, dword [esi + edi*4 + 0xe98]
push 0x32c
push edx
call fcn.00438600
test eax, eax
je 0x40d92d
mov eax, dword [0x44cb68]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
lea ebp, [esi + 0x146c]
push ecx
mov ecx, ebp
mov byte [esp + 0x42fc], 8
call fcn.0042cfea
lea edx, [esp + 0x14]
push 0x44c2a4
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00430b93
lea ecx, [edi*4 + 0x45b280]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
mov byte [esp + 0x4304], 9
call fcn.00430b2d
push 0x44c24c
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x4300], 0xa
push eax
call fcn.00430b93
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x42fc], 0xb
call fcn.00430d16
lea ecx, [esp + 0x18]
mov byte [esp + 0x42f8], 0xa
call fcn.00430942
lea ecx, [esp + 0x20]
mov byte [esp + 0x42f8], 9
call fcn.00430942
lea ecx, [esp + 0x1c]
mov byte [esp + 0x42f8], 8
call fcn.00430942
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.0042ee92
mov edx, dword [esi + 0x1488]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xba
push edx
call edi
push eax
mov eax, dword [esi + 0x1488]
push 0
push 0xb6
push eax
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x42f8], bl
call fcn.00430942
jmp 0x40d9e4
cmp eax, 2
jne 0x40d7a7
mov ecx, dword [0x45b730]
push 0x32d
push ecx
mov ecx, dword [esi + edi*4 + 0xe98]
call fcn.00438600
test eax, eax
je 0x40d92d
mov edx, dword [0x44cb68]
mov dword [esp + 0x10], edx
lea ebp, [esi + 0x146c]
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
mov byte [esp + 0x42fc], 0xc
call fcn.0042cfea
lea ecx, [esp + 0x14]
push 0x44c2a4
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00430b93
lea ecx, [edi*4 + 0x45b280]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
mov byte [esp + 0x4304], 0xd
call fcn.00430b2d
push 0x44c220
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x4300], 0xe
push eax
call fcn.00430b93
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x42fc], 0xf
call fcn.00430d16
lea ecx, [esp + 0x18]
mov byte [esp + 0x42f8], 0xe
call fcn.00430942
lea ecx, [esp + 0x20]
mov byte [esp + 0x42f8], 0xd
call fcn.00430942
lea ecx, [esp + 0x1c]
mov byte [esp + 0x42f8], 0xc
call fcn.00430942
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.0042ee92
mov edx, dword [esi + 0x1488]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xba
push edx
call edi
push eax
mov eax, dword [esi + 0x1488]
push 0
push 0xb6
push eax
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x42f8], bl
call fcn.00430942
jmp 0x40d9e4
cmp eax, ebp
jne 0x40d9e4
mov ecx, dword [0x45b730]
push 0x32b
push ecx
mov ecx, dword [esi + edi*4 + 0xe98]
call fcn.00438600
test eax, eax
je 0x40d92d
mov edx, dword [0x44cb68]
mov dword [esp + 0x10], edx
lea ebp, [esi + 0x146c]
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
mov byte [esp + 0x42fc], 0x10
call fcn.0042cfea
lea ecx, [esp + 0x14]
push 0x44c2a4
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00430b93
lea ecx, [edi*4 + 0x45b280]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
mov byte [esp + 0x4304], 0x11
call fcn.00430b2d
push 0x44c1f4
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x4300], 0x12
push eax
call fcn.00430b93
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x42fc], 0x13
call fcn.00430d16
lea ecx, [esp + 0x18]
mov byte [esp + 0x42f8], 0x12
call fcn.00430942
lea ecx, [esp + 0x20]
mov byte [esp + 0x42f8], 0x11
call fcn.00430942
lea ecx, [esp + 0x1c]
mov byte [esp + 0x42f8], 0x10
call fcn.00430942
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.0042ee92
mov edx, dword [esi + 0x1488]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xba
push edx
call edi
push eax
mov eax, dword [esi + 0x1488]
push 0
push 0xb6
push eax
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x42f8], bl
call fcn.00430942
jmp 0x40d9e4
lea ecx, [esp + 0x28]
call fcn.00431785
mov ecx, dword [esp + 0x4304]
push ebp
push 0x8000
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x4304], 0x14
call fcn.00431897
test eax, eax
je 0x40d911
lea ecx, [esp + 0x28]
call fcn.00431b91
lea edx, [esp + 0x38]
push eax
push edx
lea ecx, [esp + 0x30]
call fcn.004319b4
cmp eax, ebp
jne 0x40d95c
push ebp
push ebp
push 0x44c114
call fcn.00433b99
lea ecx, [esp + 0x28]
mov byte [esp + 0x42f8], bl
call fcn.004317da
lea ecx, [esp + 0x14]
mov byte [esp + 0x42f8], 0
call fcn.00430942
lea ecx, [esp + 0x4304]
mov dword [esp + 0x42f8], 0xffffffff
call fcn.00430942
xor al, al
jmp 0x40da0e
mov ecx, dword [esi + edi*4 + 0xe98]
push ebp
lea edx, [esp + 0x3c]
push eax
mov ecx, dword [ecx + 4]
push edx
push ecx
call sub.WSOCK32.dll_send
lea ecx, [esp + 0x28]
call fcn.00431ab2
mov eax, dword [0x45b410]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
mov dword [edi*4 + 0x45bf1c], ebp
mov byte [edi + 0x45c0ac], 0
call esi
cmp eax, 0xffffffff
je 0x40d9bc
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [0x45b410]
push ecx
call ebp
mov edx, dword [0x45b410]
push edx
call esi
cmp eax, 0xffffffff
jne 0x40d9a3
xor ebp, ebp
mov eax, dword [edi*4 + 0x45c110]
mov dword [edi*4 + 0x45c624], ebp
lea edi, [edi*4 + 0x45c110]
inc eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x42f8], bl
mov dword [edi], eax
call fcn.004317da
lea ecx, [esp + 0x14]
mov byte [esp + 0x42f8], 0
call fcn.00430942
lea ecx, [esp + 0x4304]
mov dword [esp + 0x42f8], 0xffffffff
call fcn.00430942
mov al, bl
mov ecx, dword [esp + 0x42f0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x42ec
ret 8