Function at 0x411390
Capabilities:
Check http status code

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x16c
cmp eax, 3
push ebx
push ebp
push esi
push edi
mov esi, ecx
jb 0x411b80
lea edi, [esi + 0x437c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4113d6
push eax
push eax
push 0xa0
mov ecx, esi
call fcn.0043fc10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 8
mov eax, dword [esi + 0x4394]
test eax, eax
je 0x4113fd
push 0
push 0
push 0x182
mov ecx, esi
call fcn.0043fc10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 8
mov eax, dword [esp + 0x180]
mov ecx, 0x14
lea edi, [esp + 0x6c]
lea ebx, [esi + 0x21b8]
mov dx, word [eax]
mov al, byte [eax + 2]
mov byte [esp + 0x3c], al
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, edx
lea ecx, [esp + 0x6c]
and edi, 0xffff
push ecx
push edi
mov ecx, ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], edi
call fcn.00409fa0
test eax, eax
je 0x411b80
mov ecx, esi
call fcn.0040b700
mov ebp, dword [eax + 0x20]
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x34], ebp
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [eax]
lea ecx, [esp + 0xbc]
push ecx
push edi
mov ecx, ebx
mov dword [esp + 0x40], eax
call fcn.004098f0
test eax, eax
je 0x411b80
test ebp, ebp
je 0x4114b4
lea eax, [esi + 0x37d8]
lea edx, [esp + 0x6c]
push eax
lea ecx, [esp + 0xc8]
push edx
mov edx, dword [esp + 0xc8]
push ecx
push eax
mov eax, dword [esp + 0x48]
push edx
push str.Started
push str.GetMailItem
push eax
mov ecx, ebp
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CMailLog::InsertLog_long_int__char_const___char_const___long_int__char_const___char_const___struct_IIS___struct_USERDB__]
mov ecx, dword [esi + 0x4504]
add ecx, 0x32e8
je 0x411b80
mov edi, dword [esp + 0x3c]
and edi, 0xff
mov ebp, edi
shl ebp, 4
mov dword [esp + 0x34], ebp
lea eax, [esp + ebp + 0x6c]
mov edx, eax
mov dword [esp + 0x2c], eax
mov ecx, dword [edx]
test cl, cl
mov eax, dword [edx + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov ebx, dword [edx + 8]
mov dword [esp + 0x18], ebx
mov edx, dword [edx + 0xc]
mov dword [esp + 0x1c], edx
je 0x411b80
test eax, eax
je 0x411b80
cmp cl, 5
jne 0x4116ac
mov cx, word [esp + 0x12]
test cx, cx
jne 0x4115e2
mov edi, dword [esi + 0x3f94]
mov ebx, dword [esi + 0x3f90]
test edi, edi
ja 0x41153d
cmp ebx, 0xee6b2800
jb 0x41156b
push 0
push 0
mov dword [esi + 0x3f90], 0xee6b2800
push 3
mov ecx, esi
mov dword [esi + 0x3f94], 0
call fcn.0043fc10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 8
mov ecx, 0xee6b2800
xor edx, edx
sub ecx, eax
cmp edx, edi
ja 0x41158f
jb 0x41157e
cmp ecx, ebx
jae 0x41158f
mov ecx, dword [esi + 0x3f90]
mov eax, 0xee6b2800
sub eax, ecx
mov dword [esp + 0x14], eax
test eax, eax
jbe 0x411b80
mov ecx, dword [esp + ebp + 0x70]
lea edx, [esp + ebp + 0x70]
cmp eax, ecx
jb 0x4115bc
mov edx, dword [esp + 0x2c]
mov eax, ecx
xor ecx, ecx
mov dword [esp + 0x14], eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
jmp 0x4115c0
sub ecx, eax
mov dword [edx], ecx
xor ecx, ecx
add eax, ebx
adc ecx, edi
mov dword [esi + 0x3f90], eax
mov dword [esi + 0x3f94], ecx
push 0
push 0
mov ecx, esi
call fcn.00439f50
jmp 0x411a5b
cmp cx, 2
jne 0x4116ac
mov edi, dword [esi + 0x3f9c]
mov ebx, dword [esi + 0x3f98]
test edi, edi
ja 0x411604
cmp ebx, 0xee6b2800
jb 0x411635
push 0
push 0
mov dword [esi + 0x3f98], 0xee6b2800
push 0x16e
mov ecx, esi
mov dword [esi + 0x3f9c], 0
call fcn.0043fc10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 8
mov ecx, 0xee6b2800
xor edx, edx
sub ecx, eax
cmp edx, edi
ja 0x411659
jb 0x411648
cmp ecx, ebx
jae 0x411659
mov ecx, dword [esi + 0x3f98]
mov eax, 0xee6b2800
sub eax, ecx
mov dword [esp + 0x14], eax
test eax, eax
jbe 0x411b80
mov ecx, dword [esp + ebp + 0x70]
lea edx, [esp + ebp + 0x70]
cmp eax, ecx
jb 0x411686
mov eax, ecx
mov ecx, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x14], eax
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
jmp 0x41168a
sub ecx, eax
mov dword [edx], ecx
xor edx, edx
add eax, ebx
adc edx, edi
push 0
mov dword [esi + 0x3f98], eax
push 0
mov ecx, esi
mov dword [esi + 0x3f9c], edx
call fcn.00439fa0
jmp 0x411a5b
lea eax, [esp + 0x24]
push 1
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
mov byte [esp + 0x34], 0
call fcn.004341a0
mov cl, byte [esp + 0x10]
mov dword [esp + 0x14], eax
test cl, cl
je 0x411b80
test eax, eax
je 0x411b80
mov eax, dword [esp + 0x24]
cmp eax, 1
je 0x4116f6
cmp eax, 3
jne 0x411b80
mov edx, dword [esp + 0x28]
mov ecx, esi
push edx
push eax
call fcn.00431880
test eax, eax
je 0x411b80
mov ecx, eax
mov ebx, dword [ecx]
test bl, bl
mov ebp, dword [ecx + 4]
mov dword [esp + 0x5c], ebx
mov edx, dword [ecx + 8]
mov dword [esp + 0x64], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x68], ecx
jne 0x41172c
test ebp, ebp
je 0x411746
cmp bl, byte [esp + 0x10]
jne 0x411b80
mov dx, word [esp + 0x5e]
cmp dx, word [esp + 0x12]
jne 0x411b80
cmp byte [esp + 0x10], 6
je 0x4119b5
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
lea edi, [esp + ecx + 0x70]
mov ecx, dword [esp + ecx + 0x70]
cmp edx, ecx
jb 0x41177e
mov edi, dword [esp + 0x2c]
mov edx, ecx
xor ecx, ecx
mov dword [esp + 0x14], edx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
jmp 0x411782
sub ecx, edx
mov dword [edi], ecx
test bl, bl
jne 0x4117a5
mov ecx, dword [esp + 0x10]
mov edx, eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edx + 0xc], ecx
jmp 0x4117c9
mov ecx, 0xee6b2800
sub ecx, edx
cmp ebp, ecx
jb 0x4117c4
mov edx, 0xee6b2800
sub edx, ebp
mov dword [esp + 0x14], edx
mov dword [eax + 4], 0xee6b2800
jmp 0x4117c9
add ebp, edx
mov dword [eax + 4], ebp
mov ecx, dword [esp + 0x24]
push 0
push 0
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
mov ecx, esi
call fcn.00432aa0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0
push edx
push eax
mov ecx, esi
call fcn.004336e0
cmp dword [esi + 0x449c], 1
je 0x411a5b
mov ecx, esi
call fcn.0040b670
test eax, eax
jne 0x411a5b
mov ecx, esi
call fcn.0040b6b0
test eax, eax
jne 0x411a5b
mov al, byte [esp + 0x10]
cmp al, 1
jne 0x4118bf
mov ax, word [esp + 0x12]
cmp ax, 0xc8
je 0x41196c
cmp ax, 0xc9
je 0x41196c
cmp ax, 0xd2
je 0x41196c
cmp ax, 0xd3
je 0x41196c
cmp ax, 0xdc
je 0x41196c
cmp ax, 0xdd
je 0x41196c
cmp ax, 0xe6
je 0x41196c
cmp ax, 0xe7
je 0x41196c
cmp ax, 0xf0
je 0x41196c
cmp ax, 0xf1
je 0x41196c
cmp ax, 0x45
je 0x41196c
cmp ax, 0x46
je 0x41196c
cmp ax, 0x91
je 0x41196c
cmp ax, 0x92
je 0x41196c
jmp 0x411a5b
cmp al, 2
jne 0x4118e1
mov ax, word [esp + 0x12]
cmp ax, 0x66
jl 0x411a5b
cmp ax, 0x81
jle 0x41196c
jmp 0x411a5b
cmp al, 3
jne 0x41191f
mov ax, word [esp + 0x12]
cmp ax, 0x28
je 0x41196c
cmp ax, 0x29
je 0x41196c
cmp ax, 0x2a
je 0x41196c
cmp ax, 0x2b
je 0x41196c
cmp ax, 0x32
je 0x41196c
cmp ax, 0x33
je 0x41196c
cmp ax, 0x34
je 0x41196c
cmp ax, 0x35
je 0x41196c
jmp 0x411a5b
cmp al, 5
jne 0x411a5b
mov ax, word [esp + 0x12]
cmp ax, 0x6f
je 0x41196c
cmp ax, 0x79
je 0x41196c
cmp ax, 0x71
je 0x41196c
cmp ax, 0x7b
je 0x41196c
cmp ax, 0x75
je 0x41196c
cmp ax, 0x7f
je 0x41196c
cmp ax, 0x76
je 0x41196c
cmp ax, 0x80
je 0x41196c
cmp ax, 0x95
je 0x41196c
cmp ax, 0x97
jne 0x411a5b
mov ecx, dword [esi + 0x4504]
mov edi, dword [ecx + 0x32c4]
mov ecx, esi
call fcn.0040b700
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x34]
movsx ecx, word [esp + 0x12]
push edx
push ecx
movsx edx, byte [esp + 0x18]
push edx
lea ecx, [esi + 0x37d8]
lea edx, [esp + 0xd0]
push ecx
push edx
push edi
push str.GetMailItem
mov ecx, eax
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CItemLog::InsertLog_char_const___int__char___char___int__int__unsigned_long_int_]
jmp 0x411a5b
mov ecx, esi
call fcn.0040b700
movsx ecx, byte [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esi + 0x37d8]
push ecx
mov ecx, dword [esp + 0xc8]
push edx
push edi
push 0x64
push ecx
mov ecx, dword [esp + 0x35]
push edx
mov edx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x3c]
and ecx, 0xff
and edx, 0xff
push ecx
mov ecx, dword [esp + 0x3f]
push edx
mov edx, dword [esp + 0x42]
and ecx, 0xff
and edx, 0xff
push ecx
mov ecx, dword [esp + 0x45]
mov eax, dword [eax + 0x40]
push edx
movsx edx, byte [esp + 0x48]
and ecx, 0xff
push ecx
push edx
movsx ecx, word [esp + 0x4a]
movsx edx, byte [esp + 0x48]
push ecx
push edx
mov ecx, eax
call dword [sym.imp.rmDB.dll_public:_void___thiscall_CSpecialItem::MoveItemFromTimeToUser_int__int__int__int__int__int__int__int__int__char_const___long_int__int__int__char_const___int__int_]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push 0
push eax
push ecx
mov ecx, esi
call fcn.00431fe0
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x6c]
push edx
push eax
lea ecx, [esi + 0x21b8]
call fcn.00409fa0
mov ebp, dword [esp + 0x40]
lea ecx, [esp + 0x6c]
lea ebx, [esi + 0x21b8]
push ecx
push ebp
mov ecx, ebx
call fcn.0040a080
test eax, eax
jne 0x411a94
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
lea edx, [esp + 0x6c]
mov ecx, ebx
push edx
push ebp
call fcn.0040a080
test eax, eax
je 0x411a7c
mov eax, dword [esp + 0x30]
test eax, eax
je 0x411b12
lea eax, [esp + 0xbc]
mov ecx, ebx
push eax
push ebp
call fcn.004098f0
cmp eax, 1
jne 0x411b12
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x12c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x12c]
push ecx
push ebp
mov ecx, ebx
call fcn.00409fa0
test eax, eax
je 0x411b80
lea eax, [esi + 0x37d8]
lea edx, [esp + 0x12c]
push eax
lea ecx, [esp + 0xc8]
push edx
mov edx, dword [esp + 0xc8]
push ecx
mov ecx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x48]
push edx
push str.Completed
push str.GetMailItem
push eax
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CMailLog::InsertLog_long_int__char_const___char_const___long_int__char_const___char_const___struct_IIS___struct_USERDB__]
mov cx, word [esp + 0x44]
mov eax, dword [esp + 0x2c]
mov dl, byte [esp + 0x3c]
mov word [esp + 0x48], cx
mov ecx, dword [eax]
mov byte [esp + 0x4a], dl
mov edx, dword [eax + 4]
mov dword [esp + 0x4b], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x4f], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esi]
mov dword [esp + 0x53], ecx
lea ecx, [esp + 0x48]
push 1
push ecx
push 0x13
push 0x1bf
mov ecx, esi
mov dword [esp + 0x67], edx
call dword [eax + 0xc]
mov dl, byte [esi + 0x4564]
mov ecx, esi
and dl, 0xfd
mov byte [esi + 0x4564], dl
call fcn.0040b700
mov eax, dword [eax + 8]
add esi, 0x37d8
push esi
mov ecx, eax
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CUserDB::SetUserItem_struct_USERDB__]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 8