Function at 0x41d7b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c75ae
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x51fee0]
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]
push 0
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x74], eax
call fcn.00443cd0
mov dword [ebp - 4], 0
push str.success
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00443c90
push 0x4da4ec
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.00444170
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00443ee0
push str.type
mov ecx, edi
call fcn.00444250
sub esp, 0x18
mov ecx, eax
push esp
call fcn.00444a40
lea eax, [ebp - 0x5c]
push eax
call fcn.0044ff60
add esp, 0x1c
push str.callbackId
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004452a0
test al, al
jne 0x41dcbb
mov eax, dword [ebp - 0x5c]
mov ecx, str.sync
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41d8a6
test dx, dx
je 0x41d8a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d8a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41d880
xor eax, eax
jmp 0x41d8ab
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x41d96e
push str.webRequest_callbackId_not_exist
lea ecx, [ebp - 0x54]
call fcn.00401ff0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 4
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.00443bf0
push 0x4da4ec
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 6
call fcn.00444170
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.00443ee0
cmp dword [ebp - 0x18], 0x10
jb 0x41d922
push dword [ebp - 0x2c]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 3
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41d945
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d965
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x41deb7
push 0x4da65c
mov ecx, edi
call fcn.00444250
sub esp, 0x18
mov ecx, eax
push esp
call fcn.00444a40
lea eax, [ebp - 0x60]
push eax
call fcn.0044ff60
add esp, 0x1c
push str.isResponse
mov ecx, edi
mov byte [ebp - 4], 0xd
call fcn.004452a0
test al, al
je 0x41dbf3
push str.isResponse
mov ecx, edi
call fcn.00444250
mov ecx, eax
call fcn.00444810
test al, al
je 0x41dbf3
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 0xe
call fcn.00435ec0
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 0xf
call fcn.00433230
mov ecx, dword [eax]
xor eax, eax
add esp, 4
test ecx, ecx
setne al
test eax, eax
jne 0x41da16
push 0x80004005
call fcn.004044c0
mov eax, dword [ebp - 0x58]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41da46
test dx, dx
je 0x41da42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41da46
add eax, 4
add ecx, 4
test dx, dx
jne 0x41da20
xor eax, eax
jmp 0x41da4b
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x50]
test eax, eax
sete bl
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41da6f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x41db51
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push str.webRequest_HttpRequest_
push eax
call fcn.0040b870
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x10
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x11
call fcn.00443bf0
push 0x4da4ec
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x12
call fcn.00444170
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x11
call fcn.00443ee0
cmp dword [ebp - 0x18], 0x10
jb 0x41dae9
push dword [ebp - 0x2c]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41db09
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41db29
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41db49
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x60]
jmp 0x41ddfa
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x13
call fcn.00443bf0
push str.content
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x14
call fcn.00444170
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x13
call fcn.00443ee0
cmp dword [ebp - 0x18], 0x10
jb 0x41dbaa
push dword [ebp - 0x2c]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41dbca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41dc92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41dc92
lea eax, [ebp - 0x60]
push eax
call fcn.00439010
add esp, 4
test al, al
jne 0x41dc8f
push str.webRequest_HttpWithNoResponseRequest_error
lea ecx, [ebp - 0x50]
call fcn.00401ff0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x15
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x16
call fcn.00443bf0
push 0x4da4ec
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x17
call fcn.00444170
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x16
call fcn.00443ee0
cmp dword [ebp - 0x18], 0x10
jb 0x41dc71
push dword [ebp - 0x2c]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 0xd
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jmp 0x41db3f
or edi, 0xffffffff
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41de1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41de1c
push 0x10
call fcn.004a6c5d
mov esi, eax
add esp, 4
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x41dcdd
push 0
mov ecx, esi
call fcn.00443cd0
jmp 0x41dcdf
xor esi, esi
push edi
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00443f80
lea eax, [ebp - 0x54]
push eax
push 0
push esi
push 0x40c460
push 0
push 0
mov dword [ebp - 0x54], 0
call fcn.004a8e8c
add esp, 0x18
mov edi, eax
call fcn.004179f0
test al, al
jne 0x41dd36
push 4
call fcn.004a6c5d
add esp, 4
mov ebx, eax
call fcn.004a8009
mov dword [ebx], eax
push ebx
mov dword [0x521340], eax
call fcn.004a6c2e
add esp, 4
test edi, edi
jne 0x41de12
test esi, esi
je 0x41dd52
mov ecx, esi
call fcn.00443ee0
push esi
call fcn.004a6c2e
add esp, 4
call fcn.004a86d6
push dword [eax]
lea eax, [ebp - 0x58]
push eax
call fcn.0043f5e0
add esp, 8
push eax
lea eax, [ebp - 0x50]
push str.webRequest_beginthreadex_
push eax
mov byte [ebp - 4], 8
call fcn.0040b870
add esp, 0xc
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 0xa
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41dd9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xb
call fcn.00443bf0
push 0x4da4ec
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xc
call fcn.00444170
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xb
call fcn.00443ee0
cmp dword [ebp - 0x18], 0x10
jb 0x41ddf7
push dword [ebp - 0x2c]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x41d93b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41deb0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41deb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00445f40
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
mov byte [ebp - 4], 0x1c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x1d
call fcn.00448e50
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x1e
jb 0x41defb
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 0x41df1a
xor ecx, ecx
jmp 0x41df29
mov ecx, edx
lea ebx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41df20
sub ecx, ebx
push ecx
push edx
mov ecx, esi
call fcn.00401460
lea eax, [ebp - 0x54]
push eax
call fcn.0044ff60
add esp, 0x1c
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x1f
call fcn.00402b30
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1e
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41df6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0x10
mov byte [ebp - 4], 0x1d
jb 0x41df80
push dword [ebp - 0x2c]
call fcn.004a6c2e
add esp, 4
mov ebx, dword [ebp - 0x74]
mov esi, dword [ebp - 0x50]
mov eax, 8
mov word [ebx], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x41dfa1
call fcn.0040c350
add esi, 0xfffffff0
mov dword [ebx + 8], eax
mov byte [ebp - 4], 0x1c
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x41dfbf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x34], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x4c], 0x4da4e4
jb 0x41dfdb
push dword [ebp - 0x48]
call fcn.004a6c2e
add esp, 4
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.00446040
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0xffffffff
call fcn.00443ee0
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.004a7434
mov esp, ebp
pop ebp
ret