Function at 0x1002dc20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008317c
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x100bb500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x24], edi
push str.Webrequest_opening_connection
push edi
mov word [edi + 0x5c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x30], 0xcaa1002d
call fcn.10033a50
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
add esp, 8
push dword [eax]
call fcn.10007930
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0
push 0
push eax
mov ecx, dword [ebx]
push 0x100bf714
mov byte [ebp - 4], 1
call fcn.10042430
mov edx, dword [ebp - 0x14]
or esi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002dcbe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.application_x_www_form_urlencoded
lea ecx, [ebp - 0x14]
call fcn.10007930
push str.Content_Type
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.10007930
mov ecx, dword [ebx]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 3
push eax
call fcn.100431f0
mov edx, dword [ebp + 8]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002dd0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002dd2b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi + 4]
lea eax, [ebp + 8]
push eax
call fcn.100534a0
mov ecx, dword [ebx]
push eax
mov byte [ebp - 4], 4
call fcn.10042f40
mov edx, dword [ebp + 8]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002dd61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0xc]
mov ecx, 0x10089fac
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002dd96
test dx, dx
je 0x1002dd92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002dd96
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002dd70
xor eax, eax
jmp 0x1002dd9b
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x1002de9a
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0x24
jne 0x1002de9a
push eax
lea ecx, [ebp - 0x14]
call fcn.10007930
push dword [0x100895c4]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.10007930
mov ecx, dword [ebx]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 6
push eax
call fcn.100431f0
mov edx, dword [ebp + 8]
mov eax, esi
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002de01
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002de1f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0x3c], 0
mov ecx, 0x1008f868
mov eax, 0x1008f85c
cmove eax, ecx
lea ecx, [ebp - 0x14]
push eax
call fcn.10007930
push dword [0x100895c8]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call fcn.10007930
mov ecx, dword [ebx]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 8
push eax
call fcn.100431f0
mov edx, dword [ebp + 8]
mov eax, esi
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002de7c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002de9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10008330
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
push esi
push 0x6c
push 0x4aa90010
push edi
mov byte [ebp - 4], 9
call fcn.100336c0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
add esp, 0x10
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002dee4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push dword [eax]
call fcn.10007930
mov ecx, dword [ebx]
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 0xa
call fcn.10042c00
mov edx, dword [ebp + 8]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002df1e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx]
call fcn.10042070
cmp ax, 4
je 0x1002df5a
push str.Webrequest_has_invalid_state
push edi
call fcn.10033a50
add esp, 8
lea ecx, [ebp - 0x94]
push 0xcaa10003
call fcn.10034320
push 0x100ad944
lea eax, [ebp - 0x94]
push eax
call fcn.10063e94
push str.Webrequest_has_valid_state
push edi
call fcn.10033a50
mov ecx, dword [ebx]
add esp, 8
call fcn.10043310
movzx eax, ax
push eax
push str.OAuthTokenRequestBase::ProcessTokenRequest:_Statuscode____hu_
push edi
call fcn.10033a60
mov ecx, dword [ebx]
lea eax, [ebp - 0x28]
add esp, 0xc
push dword [0x100895c4]
push eax
call fcn.10041f80
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 0xb
cmp dword [eax - 0xc], 0
je 0x1002dfab
lea eax, [ebp - 0x28]
lea ecx, [edi + 0x40]
push eax
call fcn.10007eb0
mov ecx, dword [ebx]
call fcn.10043310
movzx eax, ax
push eax
push str.OAuthTokenRequestBase::ProcessTokenRequest:_WebRequest_Status:__hu_.
push edi
call fcn.10033a60
mov ecx, dword [ebx]
lea eax, [ebp - 0x20]
add esp, 0xc
push eax
call fcn.10042140
mov byte [ebp - 4], 0xc
call fcn.10008530
mov ecx, eax
test ecx, ecx
jne 0x1002dfe8
push 0x80004005
call fcn.10008310
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
cmp dword [ebp - 0x20], 0
mov byte [ebp - 4], 0xd
je 0x1002e0b3
push dword [0x10089684]
lea ecx, [ebp + 0xc]
call fcn.10007930
mov ecx, dword [ebp - 0x20]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
push eax
call fcn.1002d010
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp + 8]
add eax, 0x14
push eax
call fcn.10007eb0
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
mov byte [ebp - 4], 0xd
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002e051
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 8]
cmp dword [esi - 0xc], 0
jne 0x1002e0b3
push dword [0x10089684]
lea ecx, [ebp + 0xc]
call fcn.10007930
mov esi, dword [ebp - 0x20]
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.10010330
push eax
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.1002d010
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp + 8]
add eax, 0x14
push eax
call fcn.10007eb0
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
mov byte [ebp - 4], 0xd
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002e0b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 8]
mov ecx, dword [ebx]
call fcn.10043310
mov ecx, 0xc8
movzx eax, ax
cmp ax, cx
mov ecx, dword [ebx]
jne 0x1002e264
lea eax, [ebp - 0x14]
push eax
call fcn.10042b20
push dword [eax]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0x10
call fcn.10007930
mov ecx, dword [ebx]
mov byte [ebp - 4], 0x11
call fcn.10043310
lea ecx, [ebp + 0xc]
movzx eax, ax
push ecx
push eax
lea eax, [edi + 0xc]
push eax
push edi
lea ecx, [ebp - 0x88]
call fcn.1005d300
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
mov byte [ebp - 4], 0x13
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002e126
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x14
call fcn.10007c70
push str.OAuthTokenRequestBase::ProcessTokenRequest:_Webrequest_returns_success_for_oauth_response.
push edi
call fcn.10033a50
add esp, 8
lea ecx, [ebp - 0x88]
call fcn.1005d4a0
lea ecx, [edi + 0x14]
push eax
call fcn.10007eb0
lea ecx, [ebp - 0x88]
call fcn.1005de60
lea ecx, [edi + 0x28]
push eax
call fcn.10007eb0
lea ecx, [ebp - 0x88]
call fcn.10053450
lea ecx, [ebp - 0x88]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
call fcn.10053460
lea ecx, [ebp - 0x88]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
call fcn.1005d610
mov byte [edi + 0x2c], al
lea ecx, [ebp - 0x88]
lea eax, [ebp - 0x1c]
push eax
call fcn.1005d4e0
push eax
lea ecx, [edi + 0x48]
call fcn.1002d580
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1002e1d8
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1002e1d8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x1002e1d8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
lea ecx, [ebp - 0x88]
call fcn.1005de40
lea ecx, [ebp - 0x88]
mov dword [edi + 0x50], eax
call fcn.1005de50
mov byte [edi + 0x54], al
lea ecx, [ebp - 0x88]
lea eax, [ebp - 0x18]
push eax
call fcn.1005de10
lea ecx, [edi + 0x58]
mov byte [ebp - 4], 0x15
push eax
call fcn.10007eb0
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
mov byte [ebp - 4], 0x14
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002e22f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
lea ecx, [edi + 0x34]
mov dword [edi + 0x30], 0
push 0x10089fac
call fcn.10008e20
push 0
lea ecx, [edi + 0x38]
push 0x10089fac
call fcn.10008e20
mov ecx, dword [edi + 4]
push edi
call fcn.10054850
mov bl, 1
jmp 0x1002e4ab
call fcn.10043310
movzx eax, ax
mov ecx, 0x191
cmp ax, cx
jne 0x1002e2e8
mov eax, dword [esi - 0xc]
test eax, eax
je 0x1002e2e8
mov ecx, dword [str.PKeyAuth]
test ecx, ecx
je 0x1002e2e8
test eax, eax
js 0x1002e2e8
push ecx
push esi
call fcn.10065de3
add esp, 8
test eax, eax
je 0x1002e2e8
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jle 0x1002e2e8
mov eax, dword [str.Context]
test eax, eax
je 0x1002e2e8
cmp dword [esi - 0xc], 0
jl 0x1002e2e8
push eax
push esi
call fcn.10065de3
add esp, 8
test eax, eax
je 0x1002e2e8
sub eax, esi
sar eax, 1
test eax, eax
jle 0x1002e2e8
lea eax, [ebp + 8]
lea ecx, [edi + 0x44]
push eax
call fcn.10007eb0
push str.OAuthTokenRequestBase::ProcessTokenRequest:_Webrequest_returns_401_PkeyAuth_challenge.
push edi
xor bl, bl
call fcn.10033a50
add esp, 8
jmp 0x1002e4b6
mov ecx, dword [ebx]
call fcn.10043310
movzx eax, ax
mov ecx, 0x1f4
cmp ax, cx
jb 0x1002e364
mov ecx, dword [ebx]
call fcn.10043310
movzx eax, ax
mov ecx, 0x257
cmp ax, cx
ja 0x1002e364
mov ecx, dword [ebx]
call fcn.10043310
movzx eax, ax
push eax
push str.OAuthTokenRequestBase::ProcessTokenRequest:_Set_to_Resiliency_network_error_since_status_code____hu_
push edi
call fcn.10033a60
add esp, 0xc
mov dword [edi + 0x30], 0xcaa20005
lea ecx, [edi + 0x34]
push dword [0x10089620]
call fcn.1002d530
push 0x257
push 0x1f4
lea eax, [edi + 0x38]
push str.HTTP_Error_Code_in_range__hu__hu_received
push eax
call fcn.1000f1d0
add esp, 0x10
mov byte [edi + 0x5d], 1
xor bl, bl
jmp 0x1002e4b6
push ecx
mov dword [ebp + 0xc], esp
mov eax, dword [edi + 0x38]
sub eax, 0x10
mov dword [ebp - 0x18], esp
push eax
call fcn.10008330
mov ecx, dword [ebp + 0xc]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
push ecx
mov dword [ebp + 0xc], esp
mov eax, dword [edi + 0x34]
sub eax, 0x10
mov byte [ebp - 4], 0x16
push eax
call fcn.10008330
mov ecx, dword [ebp + 0xc]
add esp, 4
add eax, 0x10
push str.OAuthTokenRequestBase::ProcessTokenRequest:_Webrequest_returns_error_code:__s__and_error_description:__s_
mov dword [ecx], eax
push edi
mov byte [ebp - 4], 0xd
call fcn.1002cf80
mov ecx, dword [ebx]
lea eax, [ebp - 0x18]
add esp, 0x10
push eax
call fcn.10042b20
push dword [eax]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0x17
call fcn.10007930
mov ecx, dword [ebx]
mov byte [ebp - 4], 0x18
call fcn.10043310
lea ecx, [ebp + 0xc]
movzx eax, ax
push ecx
push eax
lea eax, [edi + 0xc]
push eax
push edi
lea ecx, [ebp - 0x88]
call fcn.1005d300
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
mov byte [ebp - 4], 0x1a
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002e40e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x1b
call fcn.10007c70
lea ecx, [ebp - 0x88]
call fcn.1005d4b0
push eax
lea ecx, [edi + 0x34]
call fcn.10007eb0
lea ecx, [ebp - 0x88]
call fcn.1005d4d0
push eax
lea ecx, [edi + 0x38]
call fcn.10007eb0
mov eax, dword [edi + 0x34]
cmp dword [eax - 0xc], 0
jne 0x1002e486
mov eax, dword [edi + 0x38]
cmp dword [eax - 0xc], 0
jne 0x1002e486
mov ecx, dword [ebx]
lea eax, [ebp - 0x14]
push eax
call fcn.10042b20
push eax
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 0x1c
call fcn.10007eb0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x1b
call fcn.10007c70
push dword [0x10089620]
lea ecx, [edi + 0x34]
call fcn.1002d530
lea eax, [edi + 0x34]
push eax
call fcn.1002d6c0
add esp, 4
mov dword [edi + 0x30], eax
lea ecx, [ebp - 0x88]
call fcn.1005d4c0
lea ecx, [edi + 0x40]
push eax
call fcn.10007eb0
xor bl, bl
lea ecx, [ebp - 0x88]
call fcn.1002d2e0
mov byte [ebp - 4], 0xc
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002e4d2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x1002e4ff
mov eax, dword [esi]
mov ecx, esi
push eax
mov byte [ebp - 4], 0x1d
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.10028910
push dword [esi]
call fcn.1006219e
push 8
push esi
call fcn.1006228a
add esp, 0xc
mov edx, dword [ebp - 0x28]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002e51e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x1002e55e
push 0x4aa9000f
push edi
call fcn.100336a0
add esp, 8
jmp 0x1002e5cf
push ecx
mov esi, esp
mov dword [ebp + 8], esp
mov dword [ebp + 0xc], esi
mov eax, dword [edi + 0x40]
sub eax, 0x10
push eax
call fcn.10008330
add eax, 0x10
mov dword [esi], eax
mov esi, esp
mov dword [ebp + 0xc], esp
mov dword [ebp - 0x18], esi
mov eax, dword [edi + 0x38]
sub eax, 0x10
mov dword [ebp - 4], 0x1f
push eax
call fcn.10008330
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov esi, esp
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0x20
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10008330
add esp, 4
add eax, 0x10
mov dword [esi], eax
push 0x82
push dword [edi + 0x30]
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.1002cec0
add esp, 0x18
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc