Function at 0x420640
Capabilities:
Create http request

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, eax
push edi
call fcn.004201f0
mov eax, dword [esp + 0x20]
mov ecx, edi
call fcn.00420530
mov dword [esp + 0x1c], eax
lea esi, [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x42067c
cmp eax, ebp
jne 0x42067c
add dword [esi + 0x24], 1
jmp 0x4206a1
cmp byte [esi + 0xc], 0
je 0x42068e
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x420697
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], ebp
mov eax, dword [esp + 0x1c]
cmp eax, 4
ja case.default.0x4206ae
jmp dword [eax*4 + 0x420874]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4206c0
lea eax, [ebx + 4]
jmp 0x4206c2
xor eax, eax
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp dword [esi + 0x24], 0
mov edi, eax
je 0x4206f8
cmp dword [esi + 0x20], 0
je 0x4206f8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x20], eax
jne 0x4206f8
add dword [esi + 0x24], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
cmp byte [esi + 0xc], 0
mov dword [esi + 0x20], 0
je 0x420719
add esi, 0x28
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ebx, dword [ebx]
test ebx, ebx
je 0x42073f
push 0
push 0
push 0
lea eax, [ebx + 4]
push 1
jmp 0x4206ca
xor eax, eax
push eax
push eax
push eax
push 1
jmp 0x4206ca
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
call fcn.00421910
mov ecx, ebx
lea eax, [esp + 0x18]
call fcn.00421fd0
lea edi, [esp + 0x18]
mov ebx, eax
call fcn.00401070
cmp dword [esi + 0x24], 0
je 0x420793
cmp dword [esi + 0x20], 0
je 0x420793
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x20], eax
jne 0x420793
add dword [esi + 0x24], 0xffffffff
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
cmp byte [esi + 0xc], 0
mov dword [esi + 0x20], 0
je 0x4207b4
add esi, 0x28
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
call edx
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.00421bf0
mov ecx, ebx
lea eax, [esp + 0x18]
call fcn.00421fd0
lea edi, [esp + 0x18]
mov ebx, eax
call fcn.00401070
cmp dword [esi + 0x24], 0
je 0x420793
cmp dword [esi + 0x20], 0
je 0x420793
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x20], eax
jne 0x420793
add dword [esi + 0x24], 0xffffffff
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
cmp dword [esi + 0x24], 0
je 0x42083d
cmp dword [esi + 0x20], 0
je 0x42083d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x20], eax
jne 0x42083d
add dword [esi + 0x24], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
cmp byte [esi + 0xc], 0
mov dword [esi + 0x20], 0
je 0x42085e
add esi, 0x28
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
call edx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x10