Function at 0x42791f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fecf0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x5475b0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, dword [0x548a70]
mov edi, dword [eax + 4]
sub edi, dword [eax]
mov eax, dword [esi + 0xec]
sub eax, dword [esi + 0xe8]
sar eax, 2
sar edi, 2
cmp ecx, eax
cmovg ecx, edx
xor ebx, ebx
mov dword [0x548a70], ecx
test ecx, ecx
jle 0x4279af
mov eax, dword [esi + 0xe8]
push 0
push 0
push str.show
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, dword [0x548a70]
inc ebx
cmp ebx, ecx
jl 0x42798d
cmp edi, ecx
cmovg edi, ecx
lea ecx, [esp + 0x18]
call fcn.004b52e3
and dword [esp + 0x60], 0
lea ecx, [esp + 0x24]
call fcn.00428811
xor eax, eax
mov byte [esp + 0x60], 1
mov dword [esp + 0x14], eax
test edi, edi
jle 0x427bd1
lea ebx, [eax]
mov eax, dword [esi + 0xe8]
push 0
mov ecx, dword [eax + ebx*4]
mov eax, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [eax]
push dword [eax + ebx*4]
push 0x512ef4
call dword [edx + 0x34]
mov eax, dword [esi + 0xe8]
push 0
push 1
push str.show
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
lea ecx, [esp + 0x24]
push ecx
push dword [eax + ebx*4]
call fcn.004b4730
test eax, eax
mov eax, dword [esi + 0xe8]
push 0
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
je 0x427b85
push dword [esp + 0x40]
push 0x52293c
call dword [eax + 0x34]
mov ebx, dword [esp + 0x34]
cmp ebx, 1
je 0x427a9e
cmp ebx, 2
je 0x427a9e
cmp ebx, 5
je 0x427a9e
cmp ebx, 6
je 0x427a9e
cmp ebx, 3
je 0x427a69
cmp ebx, 7
jne 0x427a7c
push str.http:__
lea ecx, [esp + 0x44]
call fcn.0040e832
cmp eax, 0xffffffff
jne 0x427a9e
mov eax, dword [esi + 0xe8]
mov edx, dword [esp + 0x14]
push 0
push dword [esp + 0x1c]
mov ecx, dword [eax + edx*4]
push 0x522944
mov eax, dword [ecx]
call dword [eax + 0x34]
jmp 0x427bbd
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x1c]
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + eax*4]
call fcn.004b52ff
mov byte [esp + 0x60], 2
mov eax, dword [esp + 0x1c]
cmp dword [eax - 8], 0
je 0x427aeb
mov ecx, dword [esp + 0x3c]
cmp dword [ecx - 8], 0
je 0x427aeb
mov ecx, dword [esi + 0xe8]
mov edx, dword [esp + 0x14]
push 0
push eax
push 0x522944
mov ecx, dword [ecx + edx*4]
mov edx, dword [ecx]
call dword [edx + 0x34]
jmp 0x427b75
mov eax, dword [esi + 0xe8]
mov edx, dword [esp + 0x14]
push 0
push dword [esp + 0x1c]
mov ecx, dword [eax + edx*4]
push 0x522944
mov eax, dword [ecx]
call dword [eax + 0x34]
mov eax, dword [esp + 0x40]
cmp dword [eax - 8], 0
je 0x427b5a
cmp dword [esi + 0x130], 0
je 0x427b75
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x20]
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + eax*4]
call fcn.004b5367
mov byte [esp + 0x60], 3
push dword [esi + 0x10c]
mov ecx, dword [esi + 0x130]
push dword [ebp + 0xc]
push dword [eax]
push dword [esp + 0x4c]
call fcn.00432e90
lea ecx, [esp + 0x20]
call fcn.00403080
jmp 0x427b75
cmp ebx, 5
jne 0x427b75
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
push dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax + ecx*4]
mov ecx, esi
call fcn.004281f3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 1
call fcn.00403080
jmp 0x427bbd
push dword [esp + 0x1c]
push 0x522944
call dword [eax + 0x34]
mov eax, dword [esi + 0xe8]
push 0
push 0x512700
push 0x51380c
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
call dword [eax + 0x34]
mov eax, dword [ebp + 8]
mov ecx, esi
push dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax + ebx*4]
call fcn.004281f3
mov eax, dword [esp + 0x14]
inc eax
inc dword [ebp + 0xc]
mov dword [esp + 0x14], eax
cmp eax, edi
jl 0x4279de
lea eax, [esi + 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov eax, dword [esi + 0x16c]
sub eax, dword [esi + 0x168]
push 0xc
cdq
pop ecx
idiv ecx
test eax, eax
jle 0x427c0f
push 0
push 0
push esi
push 0x427fc8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0x24]
call fcn.0042704b
lea ecx, [esp + 0x18]
call fcn.00403080
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8