Function at 0x480f00
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529c58
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x595cb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
push str.IN_URL
lea ecx, [ebp - 0x18]
call fcn.0041f870
push str.downloadPackage
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.0041f910
mov byte [ebp - 4], 1
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x480f67
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x2c]
call fcn.00420f70
lea ecx, [edi + 0xe4]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.00420f70
add esp, 8
mov byte [ebp - 4], 4
cmp dword [edi + 0x80], 0
je 0x480fba
push 0
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [edi + 0x7c]
push eax
call fcn.004210a0
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x480fdb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x480ff9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x481014
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481032
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481053
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 0
push 0
push str.Playtech_WinClient_Downloader_1.0
mov byte [ebp - 0xe], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x4812e5
push str.downloadPackage
lea ecx, [ebp - 0x18]
call fcn.0041f910
push str.openInternetError
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 5
call fcn.0041f910
mov byte [ebp - 4], 6
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x4810af
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
call fcn.00420f70
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
push ecx
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.00420f70
add esp, 8
mov edi, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.0042b690
mov edx, eax
mov byte [ebp - 4], 0xa
mov ecx, edi
call fcn.00421ee0
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48111b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481139
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481157
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x481172
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481190
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4811b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.error_InternetOpen
lea ecx, [ebp - 0x18]
call fcn.0041f870
push str.downloadPackage
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xb
call fcn.0041f910
mov byte [ebp - 4], 0xc
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x4811eb
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xd
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x14]
call fcn.00420f70
add esp, 4
mov edi, eax
mov byte [ebp - 4], 0xe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.00420ee0
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x80], 0
je 0x481248
push 2
push ecx
lea ecx, [ebp - 0x1c]
add eax, 0x7c
push ecx
push eax
call fcn.004210a0
mov byte [ebp - 4], 0xe
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481266
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481284
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48129f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4812bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x481f42
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x481f42
and dword [ebp - 0x54], 0xfffffe00
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0x11
mov eax, dword [ebp - 0x44]
and eax, 0xffffff04
mov dword [ebp - 0x40], 0
or eax, 0x104
mov dword [ebp - 0x44], eax
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x59ec20]
cmp eax, dword [esi + 4]
jle 0x48135d
push 0x59ec20
call fcn.004f4722
add esp, 4
cmp dword [0x59ec20], 0xffffffff
jne 0x48135d
push 0x52c130
mov dword [0x59eb80], 0x56f1e4
call fcn.004f4b7d
push 0x59ec20
call fcn.004f46e3
add esp, 8
mov ecx, dword [0x59693c]
push 0xffffffffffffffff
push 0x56e044
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x12
push eax
push ecx
push str.method
lea ecx, [ebp - 0x5c]
call fcn.00438bb0
mov ecx, eax
call fcn.00438490
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
call fcn.00438390
lea edx, [edi + 0xe4]
lea ecx, [ebp - 0x2c]
call fcn.0042bb40
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0x13
mov ecx, dword [eax]
cmp dword [ecx - 4], 1
jle 0x4813c5
push dword [ecx - 0xc]
mov ecx, eax
call fcn.0042c830
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x44]
and eax, 0xffffff04
mov dword [ebp - 0x40], 0
or eax, 0x104
mov dword [ebp - 0x44], eax
mov eax, dword [0x59ec20]
cmp eax, dword [esi + 4]
jle 0x481425
push 0x59ec20
call fcn.004f4722
add esp, 4
cmp dword [0x59ec20], 0xffffffff
jne 0x481425
push 0x52c130
mov dword [0x59eb80], 0x56f1e4
call fcn.004f4b7d
push 0x59ec20
call fcn.004f46e3
add esp, 8
mov ecx, dword [0x59693c]
push 0xffffffffffffffff
push dword [ebp - 0x30]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x14
push eax
push ecx
push 0x56df84
lea ecx, [ebp - 0x5c]
call fcn.00438bb0
mov ecx, eax
call fcn.00438490
lea ecx, [ebp - 0x4c]
call fcn.00438390
mov byte [ebp - 4], 0x11
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48147b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
and dword [ebp - 0x44], 0xfffffe00
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x74]
and eax, 0xffffff01
mov dword [ebp - 0x70], 0
or eax, 1
mov dword [ebp - 0x7c], 0xc8
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x17
push eax
lea ecx, [ebp - 0x4c]
call fcn.00438e20
lea ecx, [ebp - 0x7c]
call fcn.00438390
mov eax, dword [ebp - 0x74]
and eax, 0xffffff01
mov dword [ebp - 0x70], 0
or eax, 1
mov dword [ebp - 0x7c], 0xc9
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x4c]
call fcn.00438e20
lea ecx, [ebp - 0x7c]
call fcn.00438390
mov eax, dword [ebp - 0x74]
and eax, 0xffffff01
mov dword [ebp - 0x70], 0
or eax, 1
mov dword [ebp - 0x7c], 0xca
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x19
push eax
lea ecx, [ebp - 0x4c]
call fcn.00438e20
lea ecx, [ebp - 0x7c]
call fcn.00438390
mov eax, dword [ebp - 0x74]
and eax, 0xffffff01
mov dword [ebp - 0x70], 0
or eax, 1
mov dword [ebp - 0x7c], 0xcb
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x1a
push eax
lea ecx, [ebp - 0x4c]
call fcn.00438e20
lea ecx, [ebp - 0x7c]
call fcn.00438390
mov eax, dword [ebp - 0x74]
and eax, 0xffffff01
mov dword [ebp - 0x70], 0
or eax, 1
mov dword [ebp - 0x7c], 0xcc
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x1b
push eax
lea ecx, [ebp - 0x4c]
call fcn.00438e20
lea ecx, [ebp - 0x7c]
call fcn.00438390
mov eax, dword [ebp - 0x74]
and eax, 0xffffff01
mov dword [ebp - 0x70], 0
or eax, 1
mov dword [ebp - 0x7c], 0xcd
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00438e20
lea ecx, [ebp - 0x7c]
call fcn.00438390
mov eax, dword [ebp - 0x74]
and eax, 0xffffff01
mov dword [ebp - 0x70], 0
or eax, 1
mov dword [ebp - 0x7c], 0xce
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x1d
push eax
lea ecx, [ebp - 0x4c]
call fcn.00438e20
lea ecx, [ebp - 0x7c]
call fcn.00438390
mov eax, dword [ebp - 0x74]
and eax, 0xffffff01
mov dword [ebp - 0x70], 0
or eax, 1
mov dword [ebp - 0x7c], 0xcf
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x1e
push eax
lea ecx, [ebp - 0x4c]
call fcn.00438e20
lea ecx, [ebp - 0x7c]
call fcn.00438390
mov eax, dword [ebp - 0x74]
and eax, 0xffffff01
mov dword [ebp - 0x70], 0
or eax, 1
mov dword [ebp - 0x7c], 0xe2
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x1f
push eax
lea ecx, [ebp - 0x4c]
call fcn.00438e20
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x16
call fcn.00438390
lea eax, [ebp - 0x4c]
push eax
push ecx
push str.acceptedStatusCodes
lea ecx, [ebp - 0x5c]
call fcn.00438bb0
mov ecx, eax
call fcn.00438490
mov eax, dword [ebp - 0x74]
and eax, 0xffffff04
mov dword [ebp - 0x70], 0
or eax, 0x104
mov dword [ebp - 0x74], eax
mov eax, dword [0x59ec20]
cmp eax, dword [esi + 4]
jle 0x4816d5
push 0x59ec20
call fcn.004f4722
add esp, 4
cmp dword [0x59ec20], 0xffffffff
jne 0x4816d5
push 0x52c130
mov dword [0x59eb80], 0x56f1e4
call fcn.004f4b7d
push 0x59ec20
call fcn.004f46e3
add esp, 8
mov ecx, dword [0x59693c]
push 0xffffffffffffffff
push 0x56e068
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x20
push eax
push ecx
push str.acceptTypes
lea ecx, [ebp - 0x5c]
call fcn.00438bb0
mov ecx, eax
call fcn.00438490
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x16
call fcn.00438390
mov ecx, dword [0x59c8ec]
lea ecx, [ecx - 0x10]
call fcn.0041fb10
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x1c]
mov eax, dword [edi + 0xec]
push dword [eax - 0xc]
push eax
call fcn.00428980
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x481752
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x1c]
call fcn.0042c1f0
mov edi, dword [ebp - 0x18]
cmp dword [edi - 4], 1
jle 0x481783
push dword [edi - 0xc]
lea ecx, [ebp - 0x18]
call fcn.0042c830
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x74]
and eax, 0xffffff04
mov dword [ebp - 0x70], 0
or eax, 0x104
mov dword [ebp - 0x74], eax
mov eax, dword [0x59ec20]
cmp eax, dword [esi + 4]
jle 0x4817de
push 0x59ec20
call fcn.004f4722
add esp, 4
cmp dword [0x59ec20], 0xffffffff
jne 0x4817de
push 0x52c130
mov dword [0x59eb80], 0x56f1e4
call fcn.004f4b7d
push 0x59ec20
call fcn.004f46e3
add esp, 8
mov ecx, dword [0x59693c]
push 0xffffffffffffffff
push edi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x23
push eax
push ecx
push str.outputFile
lea ecx, [ebp - 0x5c]
call fcn.00438bb0
mov ecx, eax
call fcn.00438490
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x22
call fcn.00438390
mov eax, dword [ebp - 0x74]
and eax, 0xffffff04
mov dword [ebp - 0x70], 0
or eax, 0x104
mov dword [ebp - 0x74], eax
mov eax, dword [0x59ec20]
cmp eax, dword [esi + 4]
jle 0x481873
push 0x59ec20
call fcn.004f4722
add esp, 4
cmp dword [0x59ec20], 0xffffffff
jne 0x481873
push 0x52c130
mov dword [0x59eb80], 0x56f1e4
call fcn.004f4b7d
push 0x59ec20
call fcn.004f46e3
add esp, 8
mov ecx, dword [0x59693c]
push 0xffffffffffffffff
push str.binary
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x24
push eax
push ecx
push str.responseType
lea ecx, [ebp - 0x5c]
call fcn.00438bb0
mov ecx, eax
call fcn.00438490
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x22
call fcn.00438390
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x5c]
push 0
push 0xffffffffffffffff
push eax
mov edx, esi
lea ecx, [ebp - 0x6c]
call fcn.0042ebf0
add esp, 0xc
push esi
mov byte [ebp - 4], 0x25
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x481b89
push str.downloadPackage
lea ecx, [ebp - 0x24]
call fcn.0041f910
push str.closeInternetError
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x26
call fcn.0041f910
mov byte [ebp - 4], 0x27
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x481913
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x28
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x34]
call fcn.00420f70
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x29
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00420f70
add esp, 8
mov ebx, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x2a
call fcn.0042b690
mov edx, eax
mov byte [ebp - 4], 0x2b
mov ecx, ebx
call fcn.00421ee0
mov byte [ebp - 4], 0x2a
or ebx, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481982
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x29
mov eax, ebx
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4819a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x28
mov eax, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4819be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x27
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4819d9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x26
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4819f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x25
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481a15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x481a2a
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, str.error_InternetCloseHandle
mov byte [ebp - 4], 0x2c
test eax, 0xffff0000
jne 0x481a5f
movzx esi, ax
mov ecx, esi
call fcn.0041f3d0
test eax, eax
je 0x481a6c
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0041fbd0
jmp 0x481a6c
push str.error_InternetCloseHandle
lea ecx, [ebp - 0x14]
call fcn.0041fa30
push str.downloadPackage
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x2d
call fcn.0041f910
mov byte [ebp - 4], 0x2e
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x481a96
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x2f
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call fcn.00420f70
add esp, 4
mov ebx, eax
mov byte [ebp - 4], 0x30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, ebx
lea ecx, [ebp - 0x30]
call fcn.00420ee0
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 0x31
cmp dword [eax + 0x80], 0
je 0x481af3
push 2
push ecx
lea ecx, [ebp - 0x24]
add eax, 0x7c
push ecx
push eax
call fcn.004210a0
mov byte [ebp - 4], 0x30
or ebx, 0xffffffff
mov edx, dword [ebp - 0x30]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481b14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2f
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481b32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2e
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x481b4d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2d
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481b6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x25
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481b89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.result
lea ecx, [ebp - 0x6c]
mov byte [ebp - 0xd], 0
call fcn.00438d70
cmp eax, 0x59c858
je 0x481bcd
push ecx
push str.result
lea ecx, [ebp - 0x6c]
call fcn.00438bb0
cmp byte [eax + 8], 5
jne 0x481bcd
push ecx
push str.result
lea ecx, [ebp - 0x6c]
call fcn.00438bb0
mov ecx, eax
call fcn.004388a0
mov byte [ebp - 0xd], al
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x481be2
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
cmp byte [ebp - 0xd], 0
mov byte [ebp - 4], 0x32
jne 0x481ed4
push str.error
lea ecx, [ebp - 0x6c]
call fcn.00438d70
cmp eax, 0x59c858
je 0x481e78
push ecx
push str.error
lea ecx, [ebp - 0x6c]
call fcn.00438bb0
cmp byte [eax + 8], 4
jne 0x481e78
push ecx
push str.error
lea ecx, [ebp - 0x6c]
call fcn.00438bb0
mov esi, eax
cmp byte [esi + 8], 4
je 0x481c58
push 0x2a9
push 0x56ef58
push str.type___stringValue
call fcn.00508598
add esp, 0xc
push dword [esi]
lea ecx, [ebp - 0x14]
call fcn.0041fa30
push str.downloadPackage_
lea ecx, [ebp - 0x24]
call fcn.0041f910
push ecx
mov byte [ebp - 4], 0x33
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x56d3a8
call fcn.0041f910
mov byte [ebp - 4], 0x34
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x481c9c
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x35
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call fcn.00420f70
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x36
push ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00420f70
add esp, 8
mov byte [ebp - 4], 0x37
mov ecx, eax
mov byte [ebp - 4], 0x3a
call fcn.00422230
mov byte [ebp - 4], 0x39
add esp, 4
mov edx, dword [ebp - 0x30]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481cff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x38
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481d1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x33
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x481d38
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x32
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481d56
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.error_HttpRequest
lea ecx, [ebp - 0x28]
call fcn.0041f870
push str.downloadPackage
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x3b
call fcn.0041f910
mov byte [ebp - 4], 0x3c
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x481d8d
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x3d
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x3c]
call fcn.00420f70
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x3e
push ecx
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00420f70
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 0x3f
cmp dword [eax + 0x80], 0
je 0x481de2
push 2
push ecx
lea ecx, [ebp - 0x24]
add eax, 0x7c
push ecx
push eax
call fcn.004210a0
mov byte [ebp - 4], 0x3e
mov eax, ebx
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481e00
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x3d
mov eax, ebx
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481e1e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x3c
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x481e39
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x3b
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481e57
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x32
mov eax, ebx
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481e75
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 0x25
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x481e93
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x6c]
call fcn.00438390
mov byte [ebp - 4], 0x21
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x481eb6
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x16
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x481f32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x481f32
mov byte [ebp - 0xe], 1
add esi, 0xfffffff0
mov byte [ebp - 4], 0x25
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x481ef3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x6c]
call fcn.00438390
mov byte [ebp - 4], 0x21
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x481f16
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x481f32
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x4c]
call fcn.00438390
lea ecx, [ebp - 0x5c]
call fcn.00438390
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret