Function at 0x41cff0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8b32
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4594
call fcn.004aa8c0
mov eax, dword [0x524ee0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4594], eax
call fcn.00418970
test al, al
jne 0x41d062
mov esi, dword [0x526340]
mov ecx, 1
cmp esi, ecx
jle 0x41d05c
lea ebx, [ebx]
mov eax, esi
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, esi
jl 0x41d050
mov dword [0x526340], ecx
push 0
lea ecx, [ebp - 0x45a4]
call fcn.00444480
mov dword [ebp - 4], 0
push str.success
lea ecx, [ebp - 0x4588]
mov byte [ebp - 4], 1
call fcn.00444440
push 0x4dfc64
lea ecx, [ebp - 0x45a4]
mov byte [ebp - 4], 2
call fcn.00444920
lea ecx, [ebp - 0x4588]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x4588]
mov byte [ebp - 4], 1
call fcn.00444690
push str.type
mov ecx, edi
call fcn.00444a00
sub esp, 0x18
mov ecx, eax
push esp
call fcn.004451d0
lea eax, [ebp - 0x458c]
push eax
call fcn.004512c0
add esp, 0x1c
push str.callbackId
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00445a20
test al, al
jne 0x41d66c
mov eax, dword [ebp - 0x458c]
mov ecx, str.sync
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41d12a
test dx, dx
je 0x41d126
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d12a
add eax, 4
add ecx, 4
test dx, dx
jne 0x41d104
xor eax, eax
jmp 0x41d12f
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x41d210
push str.webRequest_callbackId_not_exist
lea ecx, [ebp - 0x4570]
call fcn.00401ff0
lea eax, [ebp - 0x4570]
push eax
lea eax, [ebp - 0x4534]
push eax
mov byte [ebp - 4], 4
call fcn.00451390
add esp, 8
push eax
lea ecx, [ebp - 0x4588]
mov byte [ebp - 4], 5
call fcn.004443a0
push 0x4dfc64
lea ecx, [ebp - 0x45a4]
mov byte [ebp - 4], 6
call fcn.00444920
lea ecx, [ebp - 0x4588]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x4588]
mov byte [ebp - 4], 5
call fcn.00444690
cmp dword [ebp - 0x4520], 0x10
jb 0x41d1be
push dword [ebp - 0x4534]
call fcn.004a831e
add esp, 4
mov edx, dword [ebp - 0x4570]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 3
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41d1e4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x458c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d207
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x41d888
push 0x4dfdcc
mov ecx, edi
call fcn.00444a00
sub esp, 0x18
mov ecx, eax
push esp
call fcn.004451d0
lea eax, [ebp - 0x4590]
push eax
call fcn.004512c0
add esp, 0x1c
push str.isResponse
mov ecx, edi
mov byte [ebp - 4], 0xd
call fcn.00445a20
test al, al
je 0x41d4f1
push str.isResponse
mov ecx, edi
call fcn.00444a00
mov ecx, eax
call fcn.00444f90
test al, al
je 0x41d4f1
mov eax, dword [0x524ab0]
mov ecx, 0x524ab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4570], eax
lea eax, [ebp - 0x4570]
push eax
lea eax, [ebp - 0x4590]
push eax
lea eax, [ebp - 0x4574]
push eax
mov byte [ebp - 4], 0xe
call fcn.00436c20
add esp, 0xc
lea eax, [ebp - 0x457c]
push eax
mov byte [ebp - 4], 0xf
call fcn.00434520
mov ecx, dword [eax]
xor eax, eax
add esp, 4
test ecx, ecx
setne al
test eax, eax
jne 0x41d2ca
push 0x80004005
call fcn.00404410
mov eax, dword [ebp - 0x4574]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41d2f6
test dx, dx
je 0x41d2f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d2f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41d2d0
xor eax, eax
jmp 0x41d2fb
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x457c]
test eax, eax
sete byte [ebp - 0x4575]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41d326
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x4575], 0
je 0x41d434
lea eax, [ebp - 0x4570]
push eax
lea eax, [ebp - 0x457c]
push str.webRequest_HttpRequest_
push eax
call fcn.0040b7a0
add esp, 0xc
lea eax, [ebp - 0x457c]
push eax
lea eax, [ebp - 0x454c]
push eax
mov byte [ebp - 4], 0x10
call fcn.00451390
add esp, 8
push eax
lea ecx, [ebp - 0x452c]
mov byte [ebp - 4], 0x11
call fcn.004443a0
push 0x4dfc64
lea ecx, [ebp - 0x45a4]
mov byte [ebp - 4], 0x12
call fcn.00444920
lea ecx, [ebp - 0x452c]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x452c]
mov byte [ebp - 4], 0x11
call fcn.00444690
cmp dword [ebp - 0x4538], 0x10
jb 0x41d3c0
push dword [ebp - 0x454c]
call fcn.004a831e
add esp, 4
mov edx, dword [ebp - 0x457c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d3e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4574]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d406
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4570]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d429
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4590]
jmp 0x41d7a9
lea eax, [ebp - 0x4574]
push eax
lea eax, [ebp - 0x454c]
push eax
call fcn.00451390
add esp, 8
push eax
lea ecx, [ebp - 0x452c]
mov byte [ebp - 4], 0x13
call fcn.004443a0
push str.content
lea ecx, [ebp - 0x45a4]
mov byte [ebp - 4], 0x14
call fcn.00444920
lea ecx, [ebp - 0x452c]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x452c]
mov byte [ebp - 4], 0x13
call fcn.00444690
cmp dword [ebp - 0x4538], 0x10
jb 0x41d4a2
push dword [ebp - 0x454c]
call fcn.004a831e
add esp, 4
mov edx, dword [ebp - 0x4574]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d4c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4570]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d640
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41d640
mov eax, dword [0x526340]
imul eax, eax
and eax, 0x8000000f
jns 0x41d505
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 0xf
jne 0x41d520
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x50
div ecx
inc edx
mov dword [0x526340], edx
lea eax, [ebp - 0x4590]
push eax
call fcn.0043a130
add esp, 4
test al, al
jne 0x41d5da
push str.webRequest_HttpWithNoResponseRequest_error
lea ecx, [ebp - 0x457c]
call fcn.00401ff0
lea eax, [ebp - 0x457c]
push eax
lea eax, [ebp - 0x454c]
push eax
mov byte [ebp - 4], 0x15
call fcn.00451390
add esp, 8
push eax
lea ecx, [ebp - 0x452c]
mov byte [ebp - 4], 0x16
call fcn.004443a0
push 0x4dfc64
lea ecx, [ebp - 0x45a4]
mov byte [ebp - 4], 0x17
call fcn.00444920
lea ecx, [ebp - 0x452c]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x452c]
mov byte [ebp - 4], 0x16
call fcn.00444690
cmp dword [ebp - 0x4538], 0x10
jb 0x41d5b9
push dword [ebp - 0x454c]
call fcn.004a831e
add esp, 4
mov edx, dword [ebp - 0x457c]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 0xd
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jmp 0x41d41f
mov ecx, dword [0x526340]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x12
idiv ecx
cmp edx, 9
jne 0x41d63d
mov eax, dword [str.ENHk0LH]
mov dword [ebp - 0x4580], eax
mov eax, dword [0x4e08fc]
mov dword [ebp - 0x457c], eax
lea eax, [ebp - 0x4580]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d612
sub eax, edx
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a7aa0
add esp, 4
push eax
call fcn.004a98f0
add esp, 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x4590]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d7cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41d7cb
push 0x10
call fcn.004a834d
mov esi, eax
add esp, 4
mov dword [ebp - 0x457c], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x41d691
push 0
mov ecx, esi
call fcn.00444480
jmp 0x41d693
xor esi, esi
push edi
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00444730
lea eax, [ebp - 0x4570]
push eax
push 0
push esi
push 0x40c3d0
push 0
push 0
mov dword [ebp - 0x4570], 0
call fcn.004aa5cc
add esp, 0x18
test eax, eax
jne 0x41d7c1
test esi, esi
je 0x41d6e0
mov ecx, esi
call fcn.00444690
push esi
call fcn.004a831e
add esp, 4
call fcn.004a9e16
push dword [eax]
lea eax, [ebp - 0x4574]
push eax
call fcn.0043fd80
add esp, 8
push eax
lea eax, [ebp - 0x457c]
push str.webRequest_beginthreadex_
push eax
mov byte [ebp - 4], 8
call fcn.0040b7a0
add esp, 0xc
mov edx, dword [ebp - 0x4574]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 0xa
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41d735
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x457c]
push eax
lea eax, [ebp - 0x454c]
push eax
call fcn.00451390
add esp, 8
push eax
lea ecx, [ebp - 0x452c]
mov byte [ebp - 4], 0xb
call fcn.004443a0
push 0x4dfc64
lea ecx, [ebp - 0x45a4]
mov byte [ebp - 4], 0xc
call fcn.00444920
lea ecx, [ebp - 0x452c]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x452c]
mov byte [ebp - 4], 0xb
call fcn.00444690
cmp dword [ebp - 0x4538], 0x10
jb 0x41d7a3
push dword [ebp - 0x454c]
call fcn.004a831e
add esp, 4
mov edx, dword [ebp - 0x457c]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x41d1da
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
mov edx, dword [ebp - 0x458c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d881
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41d881
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x456c]
call fcn.004465d0
mov byte [ebp - 4], 0x1c
call fcn.004188c0
test al, al
jne 0x41d8c0
mov ecx, 1
mov eax, ecx
mov esi, 2
lea esp, [esp]
dec esi
lea edx, [eax + ecx]
lea ecx, [eax]
mov eax, edx
jns 0x41d8b0
mov dword [0x526340], edx
mov eax, dword [0x524ab0]
mov ecx, 0x524ab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x457c], eax
lea eax, [ebp - 0x45a4]
push eax
lea eax, [ebp - 0x454c]
push eax
lea ecx, [ebp - 0x456c]
mov byte [ebp - 4], 0x1d
call fcn.00449500
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x1e
jb 0x41d901
mov edx, dword [edx]
sub esp, 0x18
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x41d920
xor ecx, ecx
jmp 0x41d92e
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41d925
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.00401460
lea eax, [ebp - 0x4570]
push eax
call fcn.004512c0
add esp, 0x1c
push eax
lea ecx, [ebp - 0x457c]
mov byte [ebp - 4], 0x1f
call fcn.00402ab0
mov edx, dword [ebp - 0x4570]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1e
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d979
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x4538], 0x10
mov byte [ebp - 4], 0x1d
jb 0x41d994
push dword [ebp - 0x454c]
call fcn.004a831e
add esp, 4
mov edi, dword [ebp - 0x4594]
mov eax, 8
mov word [edi], ax
call fcn.00418970
test al, al
jne 0x41da1b
xor eax, eax
push 0x4506
push eax
mov word [ebp - 0x451c], ax
lea eax, [ebp - 0x451a]
push eax
call fcn.004a9c90
add esp, 0xc
xor edi, edi
xor esi, esi
lea ecx, [ecx]
xor edx, edx
test edi, edi
je 0x41d9fa
test edx, edx
je 0x41d9fa
lea eax, [esi + edx]
lea ecx, [ebp - 0x451c]
lea ecx, [ecx + eax*2]
lea eax, [esi + edx]
mov ax, word [ebp + eax*2 - 0x45d8]
inc ax
add ax, word [ecx - 2]
mov word [ecx], ax
inc edx
cmp edx, 0x5e
jl 0x41d9d2
add esi, 0x5e
inc edi
cmp esi, 0x2284
jl 0x41d9d0
movsx eax, word [ebp - 0x16]
mov edi, dword [ebp - 0x4594]
mov dword [0x526340], eax
mov esi, dword [ebp - 0x457c]
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x41da34
call fcn.00409970
add esi, 0xfffffff0
mov dword [edi + 8], eax
mov byte [ebp - 4], 0x1c
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x41da52
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x4554], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x456c], 0x4dfc5c
jb 0x41da77
push dword [ebp - 0x4568]
call fcn.004a831e
add esp, 4
lea ecx, [ebp - 0x456c]
mov dword [ebp - 0x4554], 0xf
mov dword [ebp - 0x4558], 0
mov byte [ebp - 0x4568], 0
call fcn.004466d0
lea ecx, [ebp - 0x45a4]
mov dword [ebp - 4], 0xffffffff
call fcn.00444690
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a8b24
mov esp, ebp
pop ebp
ret