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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60ed75
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x6b9a04]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x6b9a04]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], esi
push esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], esi
mov dword [ebx + 0x9c], eax
mov dword [esp + 0x58], 0xf
call fcn.004055a6
mov dword [esp + 0xa0], esi
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 2
jge 0x51bbb1
mov eax, dword [0x6c1814]
xor esi, esi
cmp eax, esi
je 0x51b964
cmp eax, 3
je 0x51bbf3
cmp dword [ebp + 8], 3
jne 0x51bbf3
mov eax, dword [ebx]
push 1
push esi
push 0x400
lea edi, [ebx + 0x529]
push edi
lea ecx, [ebx + 4]
push ecx
mov ecx, ebx
call dword [eax + 0x2c]
mov ecx, dword [0x6c1814]
cmp ecx, esi
je 0x51b99b
cmp ecx, 3
je 0x51bbf3
cmp dword [ebp + 8], 3
jne 0x51bbf3
cmp eax, 0xffffffff
je 0x51bbf7
cmp eax, esi
jle 0x51b9ac
mov dword [esp + 0x1c], esi
push edi
mov byte [edi + eax], 0
call fcn.005c3140
pop ecx
push eax
push edi
lea esi, [esp + 0x44]
call fcn.00403f16
cmp dword [esp + 0x14], 0
je 0x51b9d3
mov esi, dword [esp + 0x14]
push edi
call fcn.00403acf
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x51b9e2
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x50]
call fcn.0051c10c
mov edi, eax
test edi, edi
jne 0x51bc17
cmp dword [ebp + 8], 2
jne 0x51b937
cmp dword [ebx + 0x124], eax
je 0x51b937
cmp dword [esp + 0x50], 2
jb 0x51ba45
push 2
push eax
lea eax, [esp + 0x44]
push eax
lea esi, [esp + 0x64]
call fcn.00406cc7
mov byte [esp + 0xa0], 1
or dword [esp + 0x18], 1
push 0x65cf00
mov ecx, eax
call fcn.00404ae8
mov byte [esp + 0x13], 1
test eax, eax
je 0x51ba4a
mov byte [esp + 0x13], 0
and dword [esp + 0xa0], 0
test byte [esp + 0x18], 1
je 0x51ba6b
and dword [esp + 0x18], 0xfffffffe
push 0
push 1
lea ecx, [esp + 0x60]
call fcn.004055c2
cmp byte [esp + 0x13], 0
je 0x51b937
push 0xffffffffffffffff
push 2
lea eax, [esp + 0x44]
push eax
lea esi, [esp + 0x2c]
call fcn.00406cc7
mov ecx, eax
lea edi, [esp + 0x58]
mov byte [esp + 0xa0], 2
call fcn.0053a4b1
push 0
push 1
mov ecx, esi
mov byte [esp + 0xa8], 4
call fcn.004055c2
mov esi, str.status
push esi
call fcn.005c3140
pop ecx
push eax
push esi
mov eax, edi
push eax
xor eax, eax
call fcn.00406e21
xor edi, edi
cmp eax, 0xffffffff
je 0x51bafb
cmp dword [ebx + 0x90], edi
je 0x51baeb
mov esi, 0x641b00
push esi
call fcn.005c3140
pop ecx
push eax
push esi
lea esi, [ebx + 0x7c]
call fcn.00403f16
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x60]
push eax
lea ecx, [ebx + 0x7c]
call fcn.00403e6f
lea eax, [ebx + 8]
push eax
lea ecx, [esp + 0x78]
call fcn.004051ae
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x78]
mov byte [esp + 0xa4], 5
call fcn.0053a26f
pop ecx
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0xac], 6
call fcn.0040529a
push edi
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0xa8], 5
call fcn.004055c2
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x24]
push str._n_nReset_Oauth2:_pp:__OAuth2_
push eax
call fcn.004049b4
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebx + 0x7c]
mov byte [esp + 0xac], 7
call fcn.00403e6f
push edi
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0xa8], 5
call fcn.004055c2
push 1
push 8
mov esi, ebx
call fcn.0051a920
push edi
push 1
lea ecx, [esp + 0x7c]
mov bl, al
call fcn.004055c2
push edi
lea ecx, [esp + 0x5c]
push 1
call fcn.004055c2
jmp 0x51bbbe
push 1
push 3
mov esi, ebx
call fcn.0051a920
mov bl, al
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.004055c2
mov al, bl
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.005c30b2
mov esp, ebp
pop ebp
ret 8
xor bl, bl
jmp 0x51bbbe
call dword [0x6348e0]
push 1
cmp eax, 0x274c
jne 0x51bc0a
push 2
jmp 0x51bbb5
cmp dword [ebx + 4], esi
jne 0x51bc13
push 0xc
jmp 0x51bbb5
push 0xa
jmp 0x51bbb5
cmp dword [esp + 0x50], 3
jb 0x51bbb1
push 4
pop esi
cmp dword [esp + 0x50], esi
jb 0x51bc43
push esi
push str._ERR
push edi
call fcn.005c736f
add esp, 0xc
test eax, eax
jne 0x51bc43
push 1
push 8
jmp 0x51bbb5
mov eax, dword [ebp + 8]
cmp eax, 9
jg 0x51be3d
je 0x51be28
sub eax, esi
je 0x51bd7f
dec eax
je 0x51bca0
dec eax
je 0x51bc7c
dec eax
jne 0x51bf1c
lea esi, [ebx + 0xa4]
push edi
mov ecx, esi
call fcn.0040556d
push 7
jmp 0x51bc8c
lea esi, [ebx + 0xdc]
push edi
mov ecx, esi
call fcn.0040556d
push 6
mov ecx, esi
call fcn.0051c15d
test al, al
jne 0x51bf1c
jmp 0x51bbf3
and dword [ebx + 0x114], 0
lea eax, [esp + 0x20]
push eax
call fcn.0040b9c5
lea eax, [esp + 0x20]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push edi
mov byte [esp + 0xc4], 9
call fcn.0040518c
call fcn.005483fa
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x4c]
add esp, 0x20
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 2
jb 0x51bd08
push 1
lea esi, [esp + 0x24]
call fcn.0040ba07
cmp dword [eax + 0x18], 0x10
jb 0x51bcfe
mov eax, dword [eax + 4]
jmp 0x51bd01
add eax, 4
push eax
call fcn.005c59d8
pop ecx
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 3
jb 0x51bd41
push 2
lea esi, [esp + 0x24]
call fcn.0040ba07
cmp dword [eax + 0x18], 0x10
jb 0x51bd31
mov eax, dword [eax + 4]
jmp 0x51bd34
add eax, 4
push eax
call fcn.005c59d8
pop ecx
mov dword [ebx + 0x114], eax
xor esi, esi
cmp dword [ebx + 0x114], esi
jg 0x51bf09
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push edi
call fcn.0040518c
call fcn.0054a0e8
add esp, 0x1c
cmp eax, esi
mov dword [ebx + 0x114], eax
jge 0x51bf09
mov dword [ebx + 0x114], esi
jmp 0x51bf09
lea eax, [esp + 0x20]
push eax
call fcn.0040b9c5
lea eax, [esp + 0x20]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push edi
mov byte [esp + 0xc4], 8
call fcn.0040518c
call fcn.005483fa
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x4c]
add esp, 0x20
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 2
jb 0x51bde6
push 1
lea esi, [esp + 0x24]
call fcn.0040ba07
cmp dword [eax + 0x18], 0x10
jb 0x51bdd6
mov eax, dword [eax + 4]
jmp 0x51bdd9
add eax, 4
push eax
call fcn.005c59d8
pop ecx
mov dword [ebx + 0x118], eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 3
jb 0x51bf09
push 2
lea esi, [esp + 0x24]
call fcn.0040ba07
cmp dword [eax + 0x18], 0x10
jb 0x51be13
mov eax, dword [eax + 4]
jmp 0x51be16
add eax, 4
push eax
call fcn.005c59d8
pop ecx
mov dword [ebx + 0x11c], eax
jmp 0x51bf09
lea esi, [ebx + 0xc0]
push edi
mov ecx, esi
call fcn.0040556d
push 9
jmp 0x51bc8c
sub eax, 0xa
je 0x51bead
dec eax
je 0x51be98
sub eax, esi
jne 0x51bf1c
push 0xf
pop esi
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], esi
call fcn.004055a6
push edi
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 0xb
call fcn.0040556d
push esi
lea ecx, [esp + 0x24]
call fcn.0051c15d
lea ecx, [esp + 0x20]
test al, al
jne 0x51be8a
xor ebx, ebx
push ebx
jmp 0x51bba8
push 0
push 1
call fcn.004055c2
jmp 0x51bf1c
lea esi, [ebx + 0xf8]
push edi
mov ecx, esi
call fcn.0040556d
push 0xb
jmp 0x51bc8c
lea eax, [esp + 0x20]
push eax
call fcn.0040b9c5
lea eax, [esp + 0x20]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push edi
mov byte [esp + 0xc4], 0xa
call fcn.0040518c
call fcn.005483fa
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x4c]
add esp, 0x20
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 3
jb 0x51bf09
push 2
lea esi, [esp + 0x24]
call fcn.0040ba07
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebx + 0xf8]
call fcn.0040529a
lea esi, [esp + 0x20]
call fcn.0040bc29
push dword [esp + 0x20]
call fcn.0059a1ad
pop ecx
mov bl, 1
jmp 0x51bbbe