Function at 0x41b470
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567642
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x5cb464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x264], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x268], 0
call fcn.0041c100
mov ecx, eax
test ecx, ecx
je 0x41bd3f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x581790
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.0040e980
test al, al
jne 0x41b4fc
push 9
push 0x581790
mov ecx, ebx
call fcn.0040fb90
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x268], 1
call fcn.004cc090
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.NetBridge.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.0041bec0
mov edi, eax
cmp dword [edi], 0
jne 0x41b5c2
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x41b5c2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x41b5c2
call eax
mov dword [edi + 0xc], eax
call fcn.0041c100
mov ecx, eax
test ecx, ecx
je 0x41bd49
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x260], edi
mov dword [ebp - 4], 2
call fcn.0041c100
mov ecx, eax
test ecx, ecx
je 0x41bd53
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x23c], eax
push 0x580ffc
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 3
call fcn.0040e980
test al, al
jne 0x41b62d
push 0
push 0x580ffc
lea ecx, [ebp - 0x23c]
call fcn.0040fb90
mov byte [ebp - 4], 4
call fcn.0041c100
mov ecx, eax
test ecx, ecx
je 0x41bd5d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x248], eax
push 0x5817c0
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 5
call fcn.0040e980
test al, al
jne 0x41b678
push 4
push 0x5817c0
lea ecx, [ebp - 0x248]
call fcn.0040fb90
mov eax, dword [0x5d08bc]
test al, 1
jne 0x41b693
or eax, 1
mov dword [0x5d08b8], 0
mov dword [0x5d08bc], eax
mov byte [ebp - 0x231], 0
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 7
push eax
call fcn.00447cd4
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x231]
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x270]
push eax
push 0x419ee0
push 0x5d08b8
call fcn.004486d6
add esp, 0x10
test eax, eax
je 0x41bd1f
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 9
push eax
call fcn.00447d0e
add esp, 4
mov byte [ebp - 4], 6
call fcn.0041c100
mov ecx, eax
test ecx, ecx
je 0x41bd67
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24c], eax
push 0x5d08c0
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0xc
call fcn.0040e980
test al, al
jne 0x41b757
mov ecx, 0x5d08c0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b737
sub ecx, edx
sar ecx, 1
push ecx
push 0x5d08c0
lea ecx, [ebp - 0x24c]
call fcn.0040fb90
push 0x1c
mov byte [ebp - 4], 0xd
call fcn.0042ce00
mov esi, eax
add esp, 4
mov dword [ebp - 0x238], esi
test esi, esi
je 0x41b7c0
mov dword [esi], vtable.CHttpTaskAdapterPost.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.0041c100
mov ecx, eax
test ecx, ecx
je 0x41bd71
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0
push 0
add eax, 0x10
push 1
mov dword [esi + 0x14], eax
push 0
mov dword [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x10], eax
jmp 0x41b7c2
xor esi, esi
push dword [ebp - 0x264]
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push esi
mov dword [ebp - 0x240], 0
call fcn.0041a200
mov byte [ebp - 4], 0xe
call fcn.0041bec0
mov esi, dword [ebp - 0x24c]
or ebx, 0xffffffff
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41b961
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x238], eax
test eax, eax
je 0x41b961
mov edx, dword [eax]
mov ecx, eax
push 0
push str.ungzip
call dword [edx + 0x30]
mov ecx, dword [ebp - 0x238]
push 0
push str.gzip
mov eax, dword [ecx]
call dword [eax + 0x30]
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x41b961
push dword [ebp - 0x264]
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0
push eax
mov dword [ebp - 0x258], 0
call fcn.0041a2a0
mov edx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x25c]
mov dword [edx + 4], eax
mov ecx, dword [edx + 8]
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x238], ecx
mov dword [edx + 8], eax
test ecx, ecx
je 0x41b8b7
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x41b8b7
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x238]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x41b8b1
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x244]
mov ecx, dword [edx + 4]
push edx
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp - 0x244]
push dword [ebp - 0x23c]
push dword [ebp - 0x248]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [ebp - 0x244]
push esi
push 2
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x41b961
mov eax, dword [ebp - 0x244]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x41b961
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41b961
mov eax, dword [ebp - 0x244]
cmp dword [eax + 0xc], 0
je 0x41b961
add eax, 0x14
lea ecx, [ebp - 0x260]
push eax
call fcn.0041a9b0
mov edi, dword [ebp - 0x240]
test edi, edi
je 0x41b94f
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x41b94f
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x41b94f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x260]
mov dword [ebp - 0x238], 1
jmp 0x41b996
mov ecx, dword [ebp - 0x240]
test ecx, ecx
je 0x41b98c
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x41b98c
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x240]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x41b98c
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x238], 0
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41b9b1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x248]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41b9d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x23c]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41b9f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x238], 0
je 0x41bc08
push edi
call fcn.00493790
mov esi, eax
add esp, 4
mov dword [ebp - 0x240], esi
test esi, esi
je 0x41bc08
push 5
lea eax, [ebp - 0x230]
mov dword [ebp - 0x21c], 0xf
push str.errno
push eax
mov byte [ebp - 0x230], 0
mov dword [ebp - 0x220], 5
call fcn.004cc990
mov byte [ebp - 0x22b], 0
push 0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x10
push eax
push esi
call fcn.00494ea0
mov edx, dword [ebp - 0x21c]
add esp, 0x18
test eax, eax
mov byte [ebp - 4], 0xf
setne al
mov byte [ebp - 0x231], al
cmp edx, 0x10
jb 0x41bab3
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41baa3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bd7b
push edx
push ecx
call fcn.0046956a
mov al, byte [ebp - 0x231]
add esp, 8
test al, al
jne 0x41bbff
call fcn.0041c100
mov ecx, eax
test ecx, ecx
je 0x41bd80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x23c], eax
push 0x580ffc
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0x11
call fcn.0040e980
test al, al
jne 0x41bb02
push 0
push 0x580ffc
lea ecx, [ebp - 0x23c]
call fcn.0040fb90
push 4
lea eax, [ebp - 0x230]
mov dword [ebp - 0x21c], 0xf
push str.data
push eax
mov byte [ebp - 0x230], 0
mov dword [ebp - 0x220], 4
call fcn.004cc990
mov byte [ebp - 0x22c], 0
push 0xfde9
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x250]
push esi
push eax
call fcn.00495000
add esp, 0x20
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0x15
cmp edx, 0x10
jb 0x41bb9c
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41bb92
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bd8a
push edx
push ecx
call fcn.0046956a
add esp, 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov edx, dword [ebp - 0x23c]
mov eax, ebx
mov byte [ebp - 4], 0x16
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41bbd8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x250]
cmp dword [eax - 0xc], 0
jne 0x41bc2a
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0xf
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41bbff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call fcn.004934a0
add esp, 4
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41bcfb
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41bcfb
mov edx, dword [ebp - 0x254]
lea ecx, [eax - 0x10]
mov dword [ebp - 0x238], ecx
mov edx, dword [edx]
sub edx, 0x10
mov dword [ebp - 0x248], edx
cmp ecx, edx
je 0x41bcbe
cmp dword [edx + 0xc], 0
lea eax, [edx + 0xc]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x250]
jl 0x41bca9
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x41bca9
push dword [ebp - 0x238]
call fcn.0040c430
mov dword [ebp - 0x238], eax
add esp, 4
mov eax, dword [ebp - 0x24c]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41bc96
mov eax, dword [ebp - 0x248]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x238]
add eax, 0x10
mov dword [ecx], eax
jmp 0x41bcb8
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x254]
push eax
call fcn.0040fb90
mov eax, dword [ebp - 0x250]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0xf
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41bcd9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call fcn.004934a0
add esp, 4
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41bcfb
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046997a
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 0xa
push eax
call fcn.00447d50
add esp, 4
mov byte [ebp - 4], 8
test al, al
jne 0x41bd8f
call fcn.004487cd
push 0x80004005
call fcn.00408fa0
push 0x80004005
call fcn.00408fa0
push 0x80004005
call fcn.00408fa0
push 0x80004005
call fcn.00408fa0
push 0x80004005
call fcn.00408fa0
push 0x80004005
call fcn.00408fa0
call fcn.004d5908
push 0x80004005
call fcn.00408fa0
call fcn.004d5908
sub esp, 8
lea eax, [ebp - 0x25c]
mov ecx, esp
push eax
call fcn.00416c10
call fcn.00419be0
int3