Function at 0x40996a
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44854d
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x45f774]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x45f774]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004187ef
call fcn.0041ed23
mov eax, dword [eax + 0xc]
push 0x7e
push eax
push 0x464
push dword [esi + 0x24c]
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esi + 0x290]
push ecx
lea ebx, [esi + 0x288]
push ebx
lea ecx, [esi + 0x284]
push ecx
lea edx, [esi + 0x294]
lea edi, [esi + 0x74]
mov eax, dword [edi]
push edx
push eax
call fcn.00420c89
test eax, eax
jne 0x409a5f
lea eax, [esp + 0x18]
push str.http:__
push eax
mov ecx, edi
call fcn.004058de
pop ecx
pop ecx
and dword [esp + 0x160], 0
push eax
mov ecx, edi
call fcn.0040191d
or dword [esp + 0x160], 0xffffffff
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004017b8
mov edi, dword [edi]
lea eax, [esi + 0x290]
push eax
push ebx
lea eax, [esi + 0x284]
push eax
lea eax, [esi + 0x294]
push eax
push edi
call fcn.00420c89
test eax, eax
jne 0x409a5f
push 2
mov ecx, esi
call fcn.004184a6
jmp 0x409ca6
xor edi, edi
cmp dword [esi + 0x7c], edi
jne 0x409af7
mov eax, dword [esi + 0x78]
lea ecx, [esp + 0x24]
push ecx
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call fcn.00421234
test eax, eax
je 0x409af7
call fcn.00419238
push eax
lea ecx, [esp + 0x18]
call fcn.004017d2
mov dword [esp + 0x160], 1
push dword [esi + 0x78]
lea eax, [esp + 0x18]
push 0x82
push eax
call fcn.00421838
push edi
push 4
push dword [esp + 0x1c]
call fcn.0041bbcd
cmp eax, 6
je 0x409ae3
push 2
mov ecx, esi
call fcn.004184a6
mov ecx, dword [esp + 0x14]
jmp 0x409c9e
or dword [esp + 0x160], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004017b8
mov eax, dword [esi + 0x78]
push edi
lea ecx, [esi + 0x2ac]
mov edx, dword [ecx]
push 0x1021
push eax
call dword [edx + 0x20]
test eax, eax
jne 0x409b9a
call fcn.00419238
push eax
lea ecx, [esp + 0x1c]
call fcn.004017d2
mov dword [esp + 0x160], 2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [esp + 0x1c]
push 0x453348
push eax
call fcn.00402b1b
add esp, 0xc
call fcn.00419238
push eax
lea ecx, [esp + 0x18]
call fcn.004017d2
mov byte [esp + 0x160], 3
mov ebx, dword [esp + 0x18]
push ebx
push 0x83
lea eax, [esp + 0x1c]
push eax
call fcn.00421838
push edi
push edi
push dword [esp + 0x1c]
call fcn.0041bbcd
push 2
mov ecx, esi
call fcn.004184a6
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004017b8
lea ecx, [ebx - 0x10]
jmp 0x409ca1
mov eax, dword [ebx]
push 0x2f
push eax
call fcn.00432a6d
cmp eax, edi
pop ecx
pop ecx
je 0x409bb3
sub eax, dword [ebx]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x409bcc
mov eax, dword [ebx]
push 0x5c
push eax
call fcn.00432a6d
cmp eax, edi
pop ecx
pop ecx
je 0x409c16
sub eax, dword [ebx]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x409c16
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jle 0x409c16
mov eax, dword [eax - 0xc]
sub eax, ecx
dec eax
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.00408646
lea edi, [esi + 0x28c]
push eax
mov ecx, edi
mov dword [esp + 0x164], 4
call fcn.0040191d
or dword [esp + 0x160], 0xffffffff
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004017b8
jmp 0x409c24
lea edi, [esi + 0x28c]
push ebx
mov ecx, edi
call fcn.0040191d
call fcn.00419238
push eax
lea ecx, [esp + 0x20]
call fcn.004017d2
mov dword [esp + 0x160], 5
push dword [esi + 0x284]
lea eax, [esp + 0x20]
push dword [edi]
push 0x66
push eax
call fcn.0042184f
push dword [esp + 0x1c]
lea ecx, [esi + 0x1d8]
call fcn.00417a03
xor edi, edi
push edi
push edi
push 4
push edi
push esi
push 0x409ccd
call fcn.0041b759
cmp eax, edi
mov dword [esi + 0x2bc], eax
jne 0x409c88
push 2
mov ecx, esi
call fcn.004184a6
jmp 0x409c9a
mov dword [eax + 0x28], edi
mov eax, dword [esi + 0x2bc]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004017b8
xor eax, eax
inc eax
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0042f15c
mov esp, ebp
pop ebp
ret