Function at 0x51c780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x68b237
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x1e4]
mov eax, dword [esp + 0x1dc]
mov edx, dword [esp + 0x1e8]
mov ebp, dword [esp + 0x204]
mov edi, dword [esp + 0x1e0]
mov ebx, dword [esp + 0x200]
mov esi, dword [esp + 0x1d8]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x1f8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1ec]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x1fc]
push str.a_httpDownload
mov dword [esp + 0x20], ecx
push ebp
lea ecx, [esp + 0x64]
mov dword [esp + 0x28], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], ebx
call fcn.004b1850
test esi, esi
mov dword [esp + 0x1d0], 0
jne 0x51c85a
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.004b18c0
xor al, al
jmp 0x51cdc9
mov ecx, ebx
call fcn.00512090
mov eax, dword [ebx + 4]
mov dword [esp + 0x34], eax
xor eax, eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x24], al
mov byte [esp + 0x1a], al
mov byte [esp + 0x18], al
call fcn.00578f80
mov byte [esp + 0x1d0], 1
nop
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
push ebp
push ecx
mov ecx, dword [esp + 0x1fc]
push edx
mov edx, dword [esp + 0x1fc]
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
push edi
mov ecx, esi
call fcn.0051b8c0
cmp byte [esp + 0x24], 0
mov bl, al
mov byte [esp + 0x17], bl
jne 0x51c8db
cmp byte [esp + 0x1a], 0
je 0x51c8e6
lea ecx, [esi + 0x618]
call fcn.00484e60
call sub.KERNEL32.dll_GetTickCount
test bl, bl
mov dword [esi + 0x614], eax
je 0x51ccc0
cmp dword [esp + 0x2c], 0
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + 0x2d4]
jne 0x51ca3d
cmp ebx, 0x191
jne 0x51ca3d
lea ecx, [esp + 0x68]
call fcn.00485650
lea ecx, [edi + 0x168]
push ecx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1d4], 2
call fcn.004870b0
add edi, 0x1dc
mov ecx, edi
call fcn.005d5d40
test eax, eax
je 0x51c961
push 0x3f
lea ecx, [esp + 0x6c]
call fcn.00487e40
push edi
lea ecx, [esp + 0x6c]
call fcn.004870b0
mov edx, dword [esp + 0x34]
push ebp
push edx
mov edx, dword [esp + 0x2c]
lea edi, [esi + 0x618]
push edi
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
push 0x6d4fe0
lea ecx, [esp + 0x8c]
call fcn.00483ec0
push eax
call fcn.00512b40
add esp, 0x28
test al, al
je 0x51ccdb
push 0x6e4f9c
mov ecx, edi
call fcn.00485410
test al, al
je 0x51c9db
mov dword [esp + 0x2c], 1
lea ecx, [esp + 0x68]
mov byte [esp + 0x1d0], 1
call fcn.00485710
mov edi, dword [esp + 0x20]
jmp 0x51c890
push 0x6e2d8c
mov ecx, edi
call fcn.00485410
test al, al
je 0x51ca00
cmp byte [esp + 0x24], 0
jne 0x51c9f9
mov byte [esp + 0x24], 1
jmp 0x51c9c1
mov byte [esp + 0x1a], 1
jmp 0x51c9b9
push 0x6e2d9c
mov ecx, edi
call fcn.00485410
test al, al
jne 0x51cad2
push 0x6e2dd4
mov ecx, edi
call fcn.00485410
test al, al
jne 0x51cad2
lea ecx, [esp + 0x68]
mov byte [esp + 0x1d0], 1
call fcn.00485710
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0xdc]
call fcn.00485650
lea ecx, [esp + 0x150]
mov byte [esp + 0x1d0], 3
call fcn.00485650
cmp ebx, 0x12d
mov byte [esp + 0x1d0], 4
mov byte [esp + 0x19], 0
je 0x51ca92
cmp ebx, 0x12e
je 0x51ca92
cmp ebx, 0x12f
je 0x51ca92
cmp ebx, 0x133
je 0x51ca92
cmp ebx, 0x134
jne 0x51caf3
mov esi, dword [esp + 0x1c]
push ebp
lea edx, [esp + 0xe0]
push edx
lea eax, [esp + 0x158]
push eax
lea ecx, [edi + 0x2c4]
push ecx
mov ecx, esi
call fcn.00526370
test al, al
mov byte [esp + 0x19], al
je 0x51caf7
lea edx, [esp + 0xdc]
push edx
lea ecx, [esi + 0x10c]
call fcn.004872c0
jmp 0x51caf7
cmp byte [esp + 0x24], 0
jne 0x51cae3
mov byte [esp + 0x24], 1
jmp 0x51c9c1
cmp byte [esp + 0x18], 0
jne 0x51c9b9
jmp 0x51c9c1
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
cmp byte [eax + 0xf64], 0
je 0x51cd62
cmp ebx, 0x12d
je 0x51cb34
cmp ebx, 0x12e
je 0x51cb34
cmp ebx, 0x12f
je 0x51cb34
cmp ebx, 0x133
je 0x51cb34
cmp ebx, 0x134
jne 0x51cd62
cmp byte [esp + 0x19], 0
je 0x51ccf3
lea ecx, [esp + 0xdc]
mov byte [esi + 0x108], 1
call fcn.00483ec0
lea ecx, [esp + 0x150]
mov dword [esp + 0x38], eax
call fcn.00483ec0
lea ecx, [edi + 0x2c4]
mov ebx, eax
call fcn.00483ec0
mov esi, dword [esp + 0x34]
test esi, esi
mov dword [esp + 0x40], eax
je 0x51cbc6
test ebx, ebx
je 0x51cbc6
cmp dword [esp + 0x38], 0
je 0x51cbc6
push ebx
push str.HttpRedirect
mov ecx, esi
call fcn.004d0ba0
mov ecx, esi
call fcn.004d0a20
test eax, eax
je 0x51cbc6
mov edx, dword [eax]
mov edx, dword [edx + 0x5c]
lea ecx, [esp + 0x1b]
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, eax
mov byte [esp + 0x27], 0
call edx
cmp byte [esp + 0x1b], 0
jne 0x51cd38
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.00526530
push ebp
lea ecx, [esp + 0xe0]
call fcn.00483ec0
push eax
mov ecx, edi
call fcn.00511300
test al, al
je 0x51cd54
lea esi, [edi + 0x80]
mov ecx, esi
call fcn.005d5d40
test eax, eax
je 0x51cc11
push esi
mov esi, dword [esp + 0x2c]
lea ecx, [esi + 0x240]
call fcn.0047f950
jmp 0x51cc15
mov esi, dword [esp + 0x28]
lea ebx, [edi + 0xf4]
mov ecx, ebx
call fcn.005d5d40
test eax, eax
je 0x51cc2f
push ebp
push ebx
mov ecx, esi
call fcn.00529590
mov eax, dword [esp + 0x3c]
movzx ecx, byte [edi + 0x7c]
mov edx, dword [edi + 0x78]
push ebp
push eax
push esi
push 1
push ecx
push edx
add edi, 4
push edi
mov edi, dword [esp + 0x6c]
mov ecx, edi
call fcn.004f9ff0
mov esi, eax
test esi, esi
je 0x51cd5b
add edi, 0x64
push edi
lea ecx, [esi + 0x6f0]
call fcn.0047fac0
mov ecx, edi
call fcn.00481390
test al, al
sete al
mov byte [esi + 0x6ec], al
mov eax, dword [esp + 0x30]
add eax, 1
cmp eax, 0xa
mov dword [esp + 0x30], eax
jge 0x51cd62
lea ecx, [esp + 0x150]
mov byte [esp + 0x1d0], 3
call fcn.00485710
lea ecx, [esp + 0xdc]
mov byte [esp + 0x1d0], 1
call fcn.00485710
mov edi, dword [esp + 0x20]
jmp 0x51c890
cmp dword [esp + 0x30], 0
jle 0x51cd91
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 0x180], 1
jmp 0x51cd91
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.computeAuthorization_failed__1_.
mov ecx, ebp
call eax
lea ecx, [esp + 0x68]
jmp 0x51cd7d
push str.Failed_to_get_redirect_URL.
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
mov ecx, ebp
call eax
mov byte [esi + 0x180], 1
lea ecx, [esp + 0x150]
mov byte [esp + 0x17], 0
mov byte [esp + 0x1d0], 3
call fcn.00485710
lea ecx, [esp + 0xdc]
mov byte [esp + 0x1d0], 1
call fcn.00485710
jmp 0x51cd91
push str.Redirect_aborted_by_application_callback.
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 0x180], 1
jmp 0x51cd09
push str.Redirect_URL_is_invalid.
jmp 0x51ccf8
push str.Unable_to_get_a_new_HTTP_connection_object_for_redirection.
jmp 0x51cd3d
lea ecx, [esp + 0x150]
mov byte [esp + 0x1d0], 3
call fcn.00485710
lea ecx, [esp + 0xdc]
mov byte [esp + 0x1d0], 1
call fcn.00485710
cmp byte [esp + 0x17], 0
jne 0x51cda0
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push str.a_httpDownload_failed.
mov ecx, ebp
call eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x1d0], 0
call fcn.00578f90
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.004b18c0
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x1c0
ret