Function at 0x408d30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4ade78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
movzx eax, word [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
test ebx, ebx
je 0x409161
push 0
lea ecx, [ebp - 0x44]
call fcn.0042daf0
push edi
lea ecx, [ebp - 0x2c]
call fcn.0042da50
lea eax, [ebp - 0x2c]
push eax
push str.requestId
lea ecx, [ebp - 0x44]
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x2c]
call fcn.0042dd80
push dword [ebp - 0x30]
lea eax, [ebp - 0x30]
push eax
call fcn.00452c50
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00452ec0
add esp, 0x10
lea ecx, [ebp - 0x2c]
push eax
call fcn.0042da10
lea eax, [ebp - 0x2c]
push eax
push 0x49160c
lea ecx, [ebp - 0x44]
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x2c]
call fcn.0042dd80
cmp dword [ebp - 8], 0x10
jb 0x408ded
push dword [ebp - 0x1c]
call fcn.00460a34
add esp, 4
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
or edi, 0xffffffff
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x408e1e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [ebp - 0x50], 0
lea ecx, [ebp - 0x2c]
sete al
movzx eax, al
push eax
call fcn.0042dbf0
lea eax, [ebp - 0x2c]
push eax
push str.isSync
lea ecx, [ebp - 0x44]
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x2c]
call fcn.0042dd80
push dword [ebp - 0x48]
lea eax, [ebp - 0x34]
push eax
call fcn.00452c50
mov eax, dword [ebp - 0x34]
add esp, 8
cmp dword [eax - 0xc], 0
lea ecx, [ebp - 0x2c]
jne 0x408e85
push 0x491620
call fcn.0042dab0
lea eax, [ebp - 0x2c]
push eax
push str.method
jmp 0x408f0f
push str.POST
call fcn.0042dab0
lea eax, [ebp - 0x2c]
push eax
push str.method
lea ecx, [ebp - 0x44]
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x2c]
call fcn.0042dd80
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00452ec0
add esp, 8
lea ecx, [ebp - 0x2c]
push eax
call fcn.0042da10
lea eax, [ebp - 0x2c]
push eax
push str.postData
lea ecx, [ebp - 0x44]
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x2c]
call fcn.0042dd80
cmp dword [ebp - 8], 0x10
jb 0x408ef9
push dword [ebp - 0x1c]
call fcn.00460a34
add esp, 4
push str.application_x_www_form_urlencoded
lea ecx, [ebp - 0x2c]
call fcn.0042dab0
lea eax, [ebp - 0x2c]
push eax
push str.contentType
lea ecx, [ebp - 0x44]
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x2c]
call fcn.0042dd80
push 0x49167c
lea ecx, [ebp - 0x2c]
call fcn.0042dab0
lea eax, [ebp - 0x2c]
push eax
push str.acceptedStatusCodes
lea ecx, [ebp - 0x44]
call fcn.0042e010
mov ecx, eax
call fcn.0042e5f0
lea ecx, [ebp - 0x2c]
call fcn.0042dd80
push 0x49168c
lea ecx, [ebp - 0x2c]
call fcn.0042dab0
lea eax, [ebp - 0x2c]
push eax
push str.acceptTypes
lea ecx, [ebp - 0x44]
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x2c]
call fcn.0042dd80
push str.Accept_Encoding:_gzip__deflate_r_n
lea ecx, [ebp - 0x2c]
call fcn.0042dab0
lea eax, [ebp - 0x2c]
push eax
push str.additionalRequestHeaders
lea ecx, [ebp - 0x44]
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x2c]
call fcn.0042dd80
lea eax, [ebp - 0x44]
push eax
call fcn.00416310
add esp, 4
test al, al
je 0x409110
push 0
lea ecx, [ebp - 0x2c]
call fcn.0042daf0
call fcn.0040d140
push dword [esi + 0x18]
lea eax, [ebp - 0x44]
push dword [esi + 0x90]
push eax
lea eax, [esi + 0x98]
push eax
push dword [esi + 0x94]
lea eax, [ebp - 0x14]
push eax
call fcn.004139d0
add esp, 0x18
lea ecx, [ebp - 0x2c]
push eax
call fcn.0042de20
lea ecx, [ebp - 0x14]
call fcn.0042dd80
lea eax, [ebp - 0x30]
push eax
call fcn.00420c30
add esp, 4
lea ecx, [ebp - 0x2c]
push str.result
call fcn.0042e010
mov ecx, eax
call fcn.0042f130
test al, al
je 0x409078
push str.result
lea ecx, [ebp - 0x2c]
call fcn.0042e010
mov ecx, eax
call fcn.0042e620
test al, al
je 0x409078
push str.content
lea ecx, [ebp - 0x2c]
call fcn.0042e010
mov ecx, eax
call fcn.0042f1e0
test al, al
je 0x409078
push str.content
lea ecx, [ebp - 0x2c]
call fcn.0042e010
mov ecx, eax
call fcn.0042ea50
push eax
lea ecx, [ebp - 0x30]
call fcn.004029e0
mov eax, dword [ebp - 0x30]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00403ee0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00452960
mov dword [ebx], eax
mov esi, dword [0x4af2c0]
mov ecx, 0xa
lea eax, [esi + 1]
imul eax, esi
cdq
idiv ecx
add esp, 4
cmp edx, 7
jne 0x4090ea
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x63]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004601e0
push eax
call fcn.0046208f
add esp, 8
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409106
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x2c]
call fcn.0042dd80
jmp 0x40913f
lea eax, [ebp - 0x4c]
push eax
push 0
lea eax, [ebp - 0x44]
push eax
mov ecx, esi
mov dword [ebp - 0x4c], 0
call fcn.00404040
push eax
push 0x403050
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x409159
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x44]
call fcn.0042dd80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00461234
mov esp, ebp
pop ebp
ret 0x18