Function at 0x412070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b7910
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x4e02dc]
xor eax, esp
mov dword [esp + 0x3a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x3bc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3cc]
xor ebx, ebx
mov edi, 0xf
mov esi, ecx
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3b0], edi
mov dword [esp + 0x3ac], ebx
mov byte [esp + 0x39c], bl
mov dword [esp + 0x3c4], ebx
mov dword [esp + 0x394], edi
mov dword [esp + 0x390], ebx
mov byte [esp + 0x380], bl
mov dword [esp + 0x378], edi
mov dword [esp + 0x374], ebx
mov byte [esp + 0x364], bl
mov dword [esp + 0x35c], edi
mov dword [esp + 0x358], ebx
mov byte [esp + 0x348], bl
mov byte [esp + 0x3c4], 3
call fcn.00411c40
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
push esi
lea esi, [esp + 0x28]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.0040fd60
mov byte [esp + 0x3c4], 5
cmp dword [0x4e47f0], ebx
jne 0x412199
mov eax, dword [0x4e4a7c]
cmp eax, ebx
jne 0x41218c
call fcn.00424b40
cmp eax, ebx
mov dword [0x4e4a7c], eax
je 0x41218c
mov dword [0x4e4a78], 1
cmp eax, ebx
mov dword [0x4e47f0], eax
je 0x412455
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x30]
push ecx
sub esp, 0xc8
mov edx, esp
mov dword [esp + 0xec], esp
push 0x4e4a10
push edx
lea esi, [esp + 0x10c]
call fcn.004251e0
mov ecx, esi
mov edx, ebp
call fcn.00424fa0
add esp, 0xd0
cmp dword [0x4e4b74], ebx
je 0x4123cf
lea eax, [esp + 0x344]
push eax
lea ecx, [esp + 0x364]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x388]
push eax
lea ecx, [esp + 0x3a8]
push ecx
lea ecx, [esp + 0x30]
mov eax, 0x4e4b78
call fcn.0040fc80
cmp dword [esp + 0x18], ebx
jne 0x412230
lea esi, [esp + 0x360]
call fcn.00414f70
lea esi, [esp + 0x344]
call fcn.00414f70
mov edx, dword [0x4e3844]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3844
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x3c4], 6
mov ecx, dword [esp + 0x380]
mov ebx, 0x10
cmp dword [esp + 0x394], ebx
jae 0x41226b
lea ecx, [esp + 0x380]
cmp dword [esp + 0x3b0], ebx
mov eax, dword [esp + 0x39c]
jae 0x412282
lea eax, [esp + 0x39c]
push ecx
push eax
push str._s:_s
lea edi, [esp + 0x24]
call fcn.0040c0c0
mov esi, dword [esp + 0x354]
add esp, 0xc
cmp dword [esp + 0x35c], ebx
jae 0x4122ac
lea esi, [esp + 0x348]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], ecx
call dword [0x4e0024]
push eax
push esi
lea eax, [esp + 0x40]
call fcn.00407690
mov byte [esp + 0x3c4], 7
cmp dword [esp + 0x378], ebx
mov esi, dword [esp + 0x364]
jae 0x4122e4
lea esi, [esp + 0x364]
lea edx, [esp + 0x244]
mov dword [esp + 0x240], edx
call dword [0x4e0024]
push eax
push esi
lea eax, [esp + 0x248]
call fcn.00407690
lea eax, [esp + 0x140]
mov byte [esp + 0x3c4], 8
mov dword [esp + 0x13c], eax
call dword [0x4e0024]
mov edi, dword [esp + 0x18]
push eax
push edi
lea eax, [esp + 0x144]
call fcn.00407690
mov byte [esp + 0x3c4], 9
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x240]
mov edx, dword [esp + 0x13c]
push ecx
mov esi, 0x4e4a10
call fcn.00424f10
mov eax, dword [esp + 0x13c]
lea edx, [esp + 0x140]
cmp eax, edx
je 0x412374
push eax
call fcn.0049504d
add esp, 4
mov eax, dword [esp + 0x240]
lea ecx, [esp + 0x244]
cmp eax, ecx
je 0x41238f
push eax
call fcn.0049504d
add esp, 4
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x3c]
cmp eax, edx
je 0x4123a4
push eax
call fcn.0049504d
add esp, 4
lea eax, [edi - 0x10]
mov byte [esp + 0x3c4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4123c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, 0xf
xor ebx, ebx
lea ecx, [esp + 0x24]
push ecx
lea esi, [esp + 0x30]
call fcn.004252d0
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x4123fa
push eax
push str.KHelper::DownloadFileHttp_return:_d
mov ecx, 0x4e49b4
call fcn.00419ab0
add esp, 8
jmp 0x412455
mov edx, ebp
lea ecx, [esp + 0x18]
call fcn.00414020
lea edi, [esp + 0x20]
mov byte [esp + 0x3c4], 0xa
call fcn.0040a8e0
mov byte [esp + 0x3c4], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41243e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 0xc], ebx
je 0x412450
mov edi, ecx
mov ecx, ebp
call fcn.0042d3e0
mov edi, 0xf
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0x24], vtable.KWriteHttpFile.0
je 0x412470
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x28], ebx
mov byte [esp + 0x3c4], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412498
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, 0x10
cmp dword [esp + 0x35c], esi
jb 0x4124b6
mov ecx, dword [esp + 0x348]
push ecx
call fcn.004935b1
add esp, 4
cmp dword [esp + 0x378], esi
mov dword [esp + 0x35c], edi
mov dword [esp + 0x358], ebx
mov byte [esp + 0x348], bl
jb 0x4124e4
mov edx, dword [esp + 0x364]
push edx
call fcn.004935b1
add esp, 4
cmp dword [esp + 0x394], esi
mov dword [esp + 0x378], edi
mov dword [esp + 0x374], ebx
mov byte [esp + 0x364], bl
jb 0x412512
mov eax, dword [esp + 0x380]
push eax
call fcn.004935b1
add esp, 4
cmp dword [esp + 0x3b0], esi
mov dword [esp + 0x394], edi
mov dword [esp + 0x390], ebx
mov byte [esp + 0x380], bl
jb 0x412540
mov ecx, dword [esp + 0x39c]
push ecx
call fcn.004935b1
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3a0]
xor ecx, esp
call fcn.004935b6
add esp, 0x3b4
ret