Function at 0x40d220
Capabilities:
Check http status code
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x424164
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x470
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
or edi, 0xffffffff
test esi, esi
jne 0x40d266
or eax, 0xffffffff
mov ecx, dword [esp + 0x47c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x42e184]
test eax, eax
je 0x40dfb2
mov ebx, dword [ebp + 8]
cmp ebx, 0x64
jl 0x40dfb2
cmp ebx, 0x69
jge 0x40dfb2
xor eax, eax
mov ecx, 0x89
lea edi, [esp + 0x250]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x226
stosw word es:[edi], ax
jae 0x40d2bc
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x250]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40d2cb
mov ecx, 0x89
lea edi, [esp + 0x250]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x250]
push ecx
lea ecx, [esp + 0x1c]
call dword [0x425270]
xor esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x484], esi
call dword [0x42523c]
lea ecx, [esp + 0x10]
call dword [0x42523c]
lea edx, [esp + 0x90]
xor eax, eax
mov dword [esp + 0xa0], esi
mov ecx, 0x6a
lea edi, [esp + 0xa4]
push edx
mov byte [esp + 0x488], 2
rep stosd dword es:[edi], eax
call dword [0x4251d4]
push 0xffffffffffffffff
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x28]
call fcn.0040c750
mov ecx, dword [esp + 0x20]
xor edx, edx
cmp ebx, 0x68
setne dl
push esi
mov dword [esp + 0xa4], ecx
push str.RS_RULENAME
lea ecx, [esp + 0x20]
mov dword [esp + 0xb0], ebx
inc edx
mov dword [esp + 0xac], edx
call dword [0x42520c]
cmp eax, 0xffffffff
jle 0x40d3bf
add eax, 0xc
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
call dword [0x425250]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x488], 3
call dword [0x425238]
lea ecx, [esp + 0x28]
call dword [0x425210]
push 0x104
lea ecx, [esp + 0x14]
call dword [0x42521c]
push eax
lea ecx, [esp + 0x1d4]
push ecx
call dword [0x4251a0]
lea ecx, [esp + 0x1c]
call dword [0x42523c]
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x64]
cmp ecx, 0xc8
mov ebx, 6
mov byte [esp + 0x484], bl
ja case.0x40d3ee.103
movzx edx, byte [ecx + 0x40dfe4]
jmp dword [edx*4 + 0x40dfcc]
cmp eax, 0x64
je 0x40d412
cmp eax, 0x68
je 0x40d412
xor ecx, ecx
cmp eax, 0x65
setne cl
inc ecx
mov word [esp + 0xba], cx
jmp 0x40d41c
mov word [esp + 0xba], 0
push 0
push str.RS_SEND
lea ecx, [esp + 0x20]
call dword [0x42520c]
cmp eax, 0xffffffff
lea ecx, [esp + 0x1c]
jle 0x40d447
mov word [esp + 0xbe], 0
push str.RS_SEND_
jmp 0x40d456
mov word [esp + 0xbe], 1
push str.RS_RECV_
call dword [0x4252d4]
push 0
lea ecx, [esp + 0x20]
call dword [0x42521c]
push eax
lea ecx, [esp + 0x20]
call dword [0x42520c]
mov esi, eax
cmp esi, 0xffffffff
jle case.0x40d3ee.103
lea ecx, [esp + 0x1c]
call dword [0x425220]
add eax, esi
push eax
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x20]
call dword [0x425250]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x488], 7
call dword [0x425238]
lea ecx, [esp + 0x28]
mov byte [esp + 0x484], bl
call dword [0x425210]
push str.RS_PROT_RS_ADDR
lea ecx, [esp + 0x20]
call dword [0x4252d4]
push 0
lea ecx, [esp + 0x20]
call dword [0x42521c]
push eax
lea ecx, [esp + 0x18]
call dword [0x42520c]
mov esi, eax
cmp esi, 0xffffffff
jle case.0x40d3ee.103
push esi
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x18]
call dword [0x425290]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 8
call dword [0x425238]
lea ecx, [esp + 0x8c]
mov byte [esp + 0x484], bl
call dword [0x425210]
push 0x425708
lea ecx, [esp + 0x18]
call dword [0x425294]
test eax, eax
mov edi, dword [0x425444]
jne 0x40d54c
mov word [esp + 0xbc], bx
jmp 0x40d5c1
push 0x425704
lea ecx, [esp + 0x18]
call dword [0x425294]
test eax, eax
jne 0x40d56b
mov word [esp + 0xbc], 0x11
jmp 0x40d5c1
push str.ICMP
lea ecx, [esp + 0x18]
call dword [0x425294]
test eax, eax
jne 0x40d58a
mov word [esp + 0xbc], 1
jmp 0x40d5c1
push str.IGMP
lea ecx, [esp + 0x18]
call dword [0x425294]
test eax, eax
jne 0x40d5a9
mov word [esp + 0xbc], 2
jmp 0x40d5c1
lea ecx, [esp + 0x14]
call dword [0x42521c]
push eax
call edi
add esp, 4
mov word [esp + 0xbc], ax
lea ecx, [esp + 0x1c]
call dword [0x425220]
add eax, esi
push eax
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x18]
call dword [0x425250]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x488], 9
call dword [0x425238]
lea ecx, [esp + 0x80]
mov byte [esp + 0x484], bl
call dword [0x425210]
cmp word [esp + 0xbe], 0
mov eax, str.__
je 0x40d61c
mov eax, 0x426d24
push eax
lea ecx, [esp + 0x20]
call dword [0x4252d4]
push 0
lea ecx, [esp + 0x20]
call dword [0x42521c]
push eax
lea ecx, [esp + 0x18]
call dword [0x42520c]
mov esi, eax
cmp esi, 0xffffffff
jle case.0x40d3ee.103
push esi
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x18]
call dword [0x425290]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 0xa
call dword [0x425238]
lea ecx, [esp + 0x34]
mov byte [esp + 0x484], bl
call dword [0x425210]
lea ecx, [esp + 0x1c]
call dword [0x425220]
add eax, esi
push eax
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x18]
call dword [0x425250]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x488], 0xb
call dword [0x425238]
lea ecx, [esp + 0x88]
mov byte [esp + 0x484], bl
call dword [0x425210]
mov ax, word [esp + 0xbc]
cmp ax, bx
je 0x40d948
cmp ax, 0x11
je 0x40d948
cmp ax, 1
push ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x24], esp
mov ecx, esp
push edx
jne 0x40d8bf
call dword [0x425214]
call fcn.0040d080
add esp, 4
push 0
push str._Code
lea ecx, [esp + 0x18]
mov dword [esp + 0xb4], eax
call dword [0x42520c]
mov esi, eax
cmp esi, 0xffffffff
jle case.0x40d3ee.103
push esi
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
call dword [0x425290]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 0xd
call dword [0x425238]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x484], bl
call dword [0x425210]
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call dword [0x425214]
call fcn.0040d080
add esp, 4
mov dword [esp + 0xb4], eax
add esi, 6
push esi
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x18]
call dword [0x425250]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x488], 0xe
call dword [0x425238]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x484], bl
call dword [0x425210]
push 0
push str.__Type
lea ecx, [esp + 0x18]
call dword [0x42520c]
mov esi, eax
cmp esi, 0xffffffff
jle case.0x40d3ee.103
push esi
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call dword [0x425290]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 0xf
call dword [0x425238]
lea ecx, [esp + 0x44]
mov byte [esp + 0x484], bl
call dword [0x425210]
lea ecx, [esp + 0x14]
call dword [0x42521c]
push eax
call edi
add esp, 4
add esi, 7
push esi
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0xc8], eax
call dword [0x425250]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x488], 0x10
call dword [0x425238]
lea ecx, [esp + 0x84]
mov byte [esp + 0x484], bl
call dword [0x425210]
push 0
push 0x426d10
lea ecx, [esp + 0x18]
call dword [0x42520c]
cmp eax, 0xffffffff
jle case.0x40d3ee.103
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
call dword [0x425290]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 0x11
call dword [0x425238]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x484], bl
call dword [0x425210]
lea ecx, [esp + 0x14]
call dword [0x42521c]
push eax
call edi
add esp, 4
mov dword [esp + 0xc4], eax
jmp case.0x40d3ee.103
call dword [0x425214]
call fcn.0040d080
add esp, 4
push 0
push 0x426d10
lea ecx, [esp + 0x18]
mov dword [esp + 0xb4], eax
call dword [0x42520c]
cmp eax, 0xffffffff
jle case.0x40d3ee.103
push eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x18]
call dword [0x425290]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 0x12
call dword [0x425238]
lea ecx, [esp + 0x74]
mov byte [esp + 0x484], bl
call dword [0x425210]
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call dword [0x425214]
call fcn.0040d080
add esp, 4
mov dword [esp + 0xb4], eax
jmp case.0x40d3ee.103
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call dword [0x425214]
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0xb4]
push edx
call fcn.0040d100
add esp, 0xc
push 0
push 0x426d10
lea ecx, [esp + 0x18]
call dword [0x42520c]
cmp eax, 0xffffffff
jle case.0x40d3ee.103
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x18]
call dword [0x425290]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 0xc
call dword [0x425238]
lea ecx, [esp + 0x54]
jmp 0x40dc6c
push 0
push str.RS_ADDR
lea ecx, [esp + 0x20]
mov word [esp + 0xc4], 0x11
mov word [esp + 0xc6], 0
call dword [0x42520c]
cmp eax, 0xffffffff
jle case.0x40d3ee.103
add eax, 8
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x20]
call dword [0x425250]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x488], 0x13
call dword [0x425238]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x484], bl
call dword [0x425210]
push 0
push str.__
lea ecx, [esp + 0x18]
call dword [0x42520c]
mov esi, eax
cmp esi, 0xffffffff
jle case.0x40d3ee.103
push esi
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x18]
call dword [0x425290]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 0x14
call dword [0x425238]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x484], bl
call dword [0x425210]
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call dword [0x425214]
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0xb4]
push ecx
call fcn.0040d100
add esp, 0xc
add esi, 4
push esi
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x18]
call dword [0x425250]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x488], 0x15
call dword [0x425238]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x484], bl
call dword [0x425210]
push 0
push 0x426d10
lea ecx, [esp + 0x18]
call dword [0x42520c]
cmp eax, 0xffffffff
jle case.0x40d3ee.103
push eax
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x18]
call dword [0x425290]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 0x16
call dword [0x425238]
lea ecx, [esp + 0x64]
jmp 0x40dc6c
push 0
push str.RS_ADDRTCP_
lea ecx, [esp + 0x20]
mov word [esp + 0xc4], bx
mov word [esp + 0xc6], 0
call dword [0x42520c]
cmp eax, 0xffffffff
jle case.0x40d3ee.103
add eax, 0xd
push eax
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x20]
call dword [0x425250]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x488], 0x17
call dword [0x425238]
lea ecx, [esp + 0x30]
mov byte [esp + 0x484], bl
call dword [0x425210]
push 0
push str.__
lea ecx, [esp + 0x18]
call dword [0x42520c]
mov esi, eax
cmp esi, 0xffffffff
jle case.0x40d3ee.103
push esi
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
call dword [0x425290]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 0x18
call dword [0x425238]
lea ecx, [esp + 0x38]
mov byte [esp + 0x484], bl
call dword [0x425210]
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call dword [0x425214]
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0xb4]
push ecx
call fcn.0040d100
add esp, 0xc
add esi, 4
push esi
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x18]
call dword [0x425250]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x488], 0x19
call dword [0x425238]
lea ecx, [esp + 0x40]
mov byte [esp + 0x484], bl
call dword [0x425210]
push 0
push 0x426d10
lea ecx, [esp + 0x18]
call dword [0x42520c]
cmp eax, 0xffffffff
jle case.0x40d3ee.103
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
call dword [0x425290]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 0x1a
call dword [0x425238]
lea ecx, [esp + 0x48]
mov byte [esp + 0x484], bl
call dword [0x425210]
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call dword [0x425214]
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0xbc]
push ecx
jmp 0x40df5a
push 0
push str.RS_ADDRTCP_
lea ecx, [esp + 0x20]
mov word [esp + 0xc4], bx
mov word [esp + 0xc6], 3
call dword [0x42520c]
cmp eax, 0xffffffff
jle case.0x40d3ee.103
add eax, 0xd
push eax
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x20]
call dword [0x425250]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x488], 0x1b
call dword [0x425238]
lea ecx, [esp + 0x50]
mov byte [esp + 0x484], bl
call dword [0x425210]
push 0
push 0x426d10
lea ecx, [esp + 0x18]
call dword [0x42520c]
cmp eax, 0xffffffff
jle case.0x40d3ee.103
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x18]
call dword [0x425290]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 0x1c
call dword [0x425238]
lea ecx, [esp + 0x58]
mov byte [esp + 0x484], bl
call dword [0x425210]
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call dword [0x425214]
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0xb4]
push ecx
jmp 0x40df5a
push 0
push str.RS_ADDR
lea ecx, [esp + 0x20]
mov word [esp + 0xc6], 3
call dword [0x42520c]
cmp eax, 0xffffffff
jle case.0x40d3ee.103
add eax, 8
push eax
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x20]
call dword [0x425250]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x488], 0x1d
call dword [0x425238]
lea ecx, [esp + 0x60]
mov byte [esp + 0x484], bl
call dword [0x425210]
push 0
push 0x426cf0
lea ecx, [esp + 0x18]
call dword [0x42520c]
mov esi, eax
cmp esi, 0xffffffff
jle case.0x40d3ee.103
push esi
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x18]
call dword [0x425290]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 0x1e
call dword [0x425238]
lea ecx, [esp + 0x68]
mov byte [esp + 0x484], bl
call dword [0x425210]
push 0x425708
lea ecx, [esp + 0x18]
call dword [0x425294]
test eax, eax
jne 0x40de40
mov word [esp + 0xbc], bx
jmp 0x40deb9
push 0x425704
lea ecx, [esp + 0x18]
call dword [0x425294]
test eax, eax
jne 0x40de5f
mov word [esp + 0xbc], 0x11
jmp 0x40deb9
push str.ICMP
lea ecx, [esp + 0x18]
call dword [0x425294]
test eax, eax
jne 0x40de7e
mov word [esp + 0xbc], 1
jmp 0x40deb9
push str.IGMP
lea ecx, [esp + 0x18]
call dword [0x425294]
test eax, eax
jne 0x40de9d
mov word [esp + 0xbc], 2
jmp 0x40deb9
lea ecx, [esp + 0x14]
call dword [0x42521c]
push eax
call dword [0x425444]
add esp, 4
mov word [esp + 0xbc], ax
inc esi
push esi
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x18]
call dword [0x425250]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x488], 0x1f
call dword [0x425238]
lea ecx, [esp + 0x70]
mov byte [esp + 0x484], bl
call dword [0x425210]
push 0
push 0x426d10
lea ecx, [esp + 0x18]
call dword [0x42520c]
cmp eax, 0xffffffff
jle case.0x40d3ee.103
push eax
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x18]
call dword [0x425290]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 0x20
call dword [0x425238]
lea ecx, [esp + 0x78]
mov byte [esp + 0x484], bl
call dword [0x425210]
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call dword [0x425214]
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0xbc]
push edx
call fcn.0040d100
add esp, 0xc
mov ecx, dword [0x4324e0]
test ecx, ecx
je 0x40df88
mov eax, dword [ecx]
push 0x1ac
lea edx, [esp + 0xa4]
push edx
push 0x19b
push str.RAVSERVICE.EXE0
call dword [eax + 0x14]
lea ecx, [esp + 0x1c]
xor edi, edi
call dword [0x425210]
lea ecx, [esp + 0x10]
call dword [0x425210]
lea ecx, [esp + 0x14]
call dword [0x425210]
lea ecx, [esp + 0x18]
call dword [0x425210]
mov ecx, dword [esp + 0x47c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret