Function at 0x411750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49586d
mov eax, dword fs:[0]
push eax
sub esp, 0x3a4
mov eax, dword [0x4b7110]
xor eax, esp
mov dword [esp + 0x3a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x3b8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3cc]
mov ebp, dword [esp + 0x3c8]
or esi, 0xffffffff
mov dword [esp + 0x20], vtable.KWriteMemHttpFile.0
mov dword [esp + 0x24], eax
xor ebx, ebx
mov dword [esp + 0x3c0], ebx
mov edx, dword [0x4b994c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4b994c
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov edi, 0xf
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3b0], edi
mov dword [esp + 0x3ac], ebx
mov byte [esp + 0x39c], bl
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 + 0x3c0], 5
cmp dword [0x4ba898], ebx
jne 0x41186f
mov eax, dword [0x4baa24]
cmp eax, ebx
jne 0x411862
call fcn.00427a70
cmp eax, ebx
mov dword [0x4baa24], eax
je 0x411862
mov dword [0x4baa20], 1
cmp eax, ebx
mov dword [0x4ba898], eax
je 0x411b26
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
sub esp, 0xc8
mov eax, esp
mov dword [esp + 0x104], esp
push 0x4ba9b8
push eax
lea esi, [esp + 0x108]
call fcn.004282e0
mov ecx, esi
mov edx, ebp
call fcn.004280a0
add esp, 0xd0
cmp dword [0x4bab14], ebx
je 0x411aa4
lea ecx, [esp + 0x344]
push ecx
lea edx, [esp + 0x364]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x388]
push ecx
lea edx, [esp + 0x3a8]
push edx
lea ecx, [esp + 0x48]
mov eax, 0x4bab18
call fcn.0040ef90
cmp dword [esp + 0x18], ebx
jne 0x411906
lea edi, [esp + 0x360]
call fcn.00416e10
lea edi, [esp + 0x344]
call fcn.00416e10
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x3c0], 7
mov ecx, dword [esp + 0x380]
mov ebx, 0x10
cmp dword [esp + 0x394], ebx
jae 0x411940
lea ecx, [esp + 0x380]
cmp dword [esp + 0x3b0], ebx
mov eax, dword [esp + 0x39c]
jae 0x411957
lea eax, [esp + 0x39c]
push ecx
push eax
push str._s:_s
lea edi, [esp + 0x24]
call fcn.004039f0
mov esi, dword [esp + 0x354]
add esp, 0xc
cmp dword [esp + 0x35c], ebx
jae 0x411981
lea esi, [esp + 0x348]
lea eax, [esp + 0x140]
mov dword [esp + 0x13c], eax
call dword [section..data]
push eax
push esi
lea eax, [esp + 0x144]
call fcn.004034a0
mov byte [esp + 0x3c0], 8
cmp dword [esp + 0x378], ebx
mov esi, dword [esp + 0x364]
jae 0x4119c2
lea esi, [esp + 0x364]
lea ecx, [esp + 0x244]
mov dword [esp + 0x240], ecx
call dword [section..data]
push eax
push esi
lea eax, [esp + 0x248]
call fcn.004034a0
lea edx, [esp + 0x3c]
mov byte [esp + 0x3c0], 9
mov dword [esp + 0x38], edx
call dword [section..data]
mov esi, dword [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x40]
call fcn.004034a0
mov byte [esp + 0x3c0], 0xa
mov eax, dword [esp + 0x13c]
mov ebx, dword [esp + 0x240]
mov edx, dword [esp + 0x38]
push eax
mov edi, 0x4ba9b8
call fcn.00427e40
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x411a43
push eax
call fcn.0045f409
add esp, 4
mov eax, dword [esp + 0x240]
lea edx, [esp + 0x244]
cmp eax, edx
je 0x411a5e
push eax
call fcn.0045f409
add esp, 4
mov eax, dword [esp + 0x13c]
lea ecx, [esp + 0x140]
cmp eax, ecx
je 0x411a79
push eax
call fcn.0045f409
add esp, 4
lea eax, [esi - 0x10]
mov byte [esp + 0x3c0], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411a9d
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 + 0x20]
push ecx
lea esi, [esp + 0x2c]
call fcn.004283c0
mov esi, eax
cmp esi, ebx
je 0x411acd
push esi
push str.KHelper::DownloadFileHttp_return:_d
mov ecx, 0x4ba960
call fcn.0041d5c0
add esp, 8
jmp 0x411b26
mov edx, ebp
lea ecx, [esp + 0x18]
call fcn.00414320
lea edi, [esp + 0x1c]
mov byte [esp + 0x3c0], 0xb
call fcn.00401cd0
mov byte [esp + 0x3c0], 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 0x411b11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
cmp dword [edi - 0xc], ebx
je 0x411b21
mov ecx, ebp
call fcn.0042cd60
mov edi, 0xf
mov ebp, 0x10
cmp dword [esp + 0x35c], ebp
jb 0x411b44
mov ecx, dword [esp + 0x348]
push ecx
call fcn.0045eebc
add esp, 4
cmp dword [esp + 0x378], ebp
mov dword [esp + 0x35c], edi
mov dword [esp + 0x358], ebx
mov byte [esp + 0x348], bl
jb 0x411b72
mov edx, dword [esp + 0x364]
push edx
call fcn.0045eebc
add esp, 4
cmp dword [esp + 0x394], ebp
mov dword [esp + 0x378], edi
mov dword [esp + 0x374], ebx
mov byte [esp + 0x364], bl
jb 0x411ba0
mov eax, dword [esp + 0x380]
push eax
call fcn.0045eebc
add esp, 4
cmp dword [esp + 0x3b0], ebp
mov dword [esp + 0x394], edi
mov dword [esp + 0x390], ebx
mov byte [esp + 0x380], bl
jb 0x411bce
mov ecx, dword [esp + 0x39c]
push ecx
call fcn.0045eebc
add esp, 4
mov byte [esp + 0x3c0], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x3b0], edi
mov dword [esp + 0x3ac], ebx
mov byte [esp + 0x39c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411c0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3c0], 0xffffffff
mov eax, dword [esp + 0x24]
push 1
push 0x4a0c40
mov dword [esp + 0x28], vtable.KWriteMemHttpFile.0
call fcn.00416d20
mov eax, esi
mov ecx, dword [esp + 0x3b8]
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.0045eec1
add esp, 0x3b0
ret