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

Disassembly:
mov eax, 0x5c
call fcn.0057ca60
mov eax, dword [esp + 0x64]
push ebx
push ebp
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x5c], eax
mov eax, dword [eax]
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], 0x3a
push esi
push edi
test ebp, ebp
je 0x504c43
mov esi, dword [ebp]
test esi, esi
jne 0x504c58
call fcn.004d81b0
mov esi, eax
test esi, esi
jne 0x504c58
mov ecx, 0x184
jmp 0x505d63
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x30]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov dword [esp + 0x40], eax
test ecx, ecx
jne 0x504c80
mov dword [esp + 0x5c], ecx
jmp 0x504c86
add eax, ecx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004cb840
add esp, 8
test eax, eax
jne 0x504ca6
mov ecx, 0x18a
jmp 0x505d63
mov eax, dword [esp + 0x40]
push dword [esp + 0x58]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
mov dword [esp + 0x40], 0
push eax
mov dword [esp + 0x3c], 0
call fcn.004e9140
add esp, 0xc
test eax, eax
jne 0x504ce2
mov ecx, 0x18e
jmp 0x505d63
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
sub eax, edx
mov ecx, dword [esp + 0x58]
add ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], ecx
test eax, eax
je 0x504d1f
push eax
call fcn.004c8010
mov ecx, dword [esp + 0x5c]
add esp, 4
mov edx, dword [esp + 0x40]
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x64], edx
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004e9140
add esp, 0xc
test eax, eax
jne 0x504d44
mov ecx, 0x196
jmp 0x505d63
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
push dword [esp + 0x70]
add dword [esp + 0x5c], eax
call fcn.004cc220
mov edi, eax
add esp, 4
mov dword [esi], edi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x504d81
push eax
call fcn.004c8010
add esp, 4
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x40]
push dword [esp + 0x58]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x30], 0
push eax
mov dword [esp + 0x2c], 0
call fcn.004e9160
add esp, 0xc
test eax, eax
jne 0x504dbd
mov ecx, 0x1a1
jmp 0x505d63
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp edi, 2
jne 0x504e03
cmp dword [esp + 0x20], 3
je 0x504de7
mov dword [esp + 0x48], 0x89
mov ecx, 0x1a5
jmp 0x505d63
mov ecx, dword [esp + 0x28]
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
or edx, 0x200
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 2]
jmp 0x504e58
mov eax, edi
sar eax, 8
cmp eax, 3
je 0x504e2e
cmp eax, 0xfe
je 0x504e2e
cmp edi, 0x100
je 0x504e2e
mov dword [esp + 0x48], 0xfe
mov ecx, 0x1b7
jmp 0x505d63
cmp dword [esp + 0x20], 2
je 0x504e47
mov dword [esp + 0x48], 0x89
mov ecx, 0x1b0
jmp 0x505d63
mov eax, dword [esp + 0x28]
movzx edx, byte [eax]
movzx eax, byte [eax + 1]
or edx, 0x30000
shl edx, 8
or edx, eax
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb8], edx
mov eax, dword [esp + 0x40]
push dword [esp + 0x58]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004e9160
add esp, 0xc
test eax, eax
jne 0x504e99
mov ecx, 0x1be
jmp 0x505d63
mov eax, dword [esp + 0x60]
mov ecx, 0x20
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
cmp eax, ecx
cmovg eax, ecx
mov dword [esp + 0x20], eax
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x20]
cmp eax, ecx
jle 0x504edd
push str.os.length____int_sizeof_ret__session_id_
push 0x1ca
push str.._ssl_ssl_asn1.c
call fcn.004e7a20
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
push dword [esp + 0x2c]
lea eax, [esi + 0x48]
push eax
call fcn.00594b00
mov eax, dword [esp + 0x4c]
push dword [esp + 0x64]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004e9160
add esp, 0x18
test eax, eax
jne 0x504f17
mov ecx, 0x1cd
jmp 0x505d63
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
cmp eax, 0x30
jle 0x504f35
mov dword [esi + 0x10], 0x30
jmp 0x504f38
mov dword [esi + 0x10], eax
push dword [esi + 0x10]
lea eax, [esi + 0x14]
push dword [esp + 0x2c]
push eax
call fcn.00594b00
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x58], ecx
je 0x504fc9
mov edx, dword [esp + 0x40]
mov bl, byte [edx]
movzx eax, bl
and al, 0xdf
cmp al, 0x80
jne 0x504fc9
mov al, bl
and al, 0x20
or al, 4
mov byte [edx], al
mov eax, dword [esp + 0x40]
push dword [esp + 0x58]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004e9160
add esp, 0xc
test eax, eax
jne 0x504fa7
mov eax, dword [esp + 0x60]
mov dword [esp + 0x68], 0x1e7
mov byte [eax], bl
mov ecx, dword [esp + 0x68]
jmp 0x505d67
mov ecx, dword [esp + 0x60]
mov eax, ecx
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov byte [ecx], bl
mov ecx, dword [esp + 0x20]
cmp ecx, 8
jle 0x504fc9
mov dword [esi + 4], 8
jmp 0x504fcc
mov dword [esi + 4], ecx
push dword [esi + 4]
lea eax, [esi + 8]
push dword [esp + 0x2c]
push eax
call fcn.00594b00
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x504ff0
push eax
call fcn.004c8010
add esp, 4
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], 0
test eax, eax
je 0x5050d0
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa1
jne 0x5050d0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004cb570
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x50504a
mov dword [esp + 0x48], 0x3b
mov ecx, 0x1f1
jmp 0x505d63
cmp ebx, 0x21
jne 0x505066
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x50506a
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004e9140
add esp, 0xc
test eax, eax
jne 0x50508b
mov ecx, 0x1f1
jmp 0x505d63
cmp ebx, 0x21
jne 0x5050c4
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004cb540
add esp, 8
test eax, eax
jne 0x5050c4
mov dword [esp + 0x48], 0x3f
mov ecx, 0x1f1
jmp 0x505d63
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x5050fc
push dword [esp + 0x70]
call fcn.004cc220
mov dword [esi + 0xac], eax
push dword [esp + 0x3c]
call fcn.004c8010
add esp, 8
mov dword [esp + 0x38], 0
jmp 0x50510c
push 0
call fcn.0059baaf
add esp, 4
mov dword [esi + 0xac], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], 0
test eax, eax
je 0x5051ec
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa2
jne 0x5051ec
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004cb570
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x505166
mov dword [esp + 0x48], 0x3b
mov ecx, 0x1fb
jmp 0x505d63
cmp ebx, 0x21
jne 0x505182
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x505186
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004e9140
add esp, 0xc
test eax, eax
jne 0x5051a7
mov ecx, 0x1fb
jmp 0x505d63
cmp ebx, 0x21
jne 0x5051e0
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004cb540
add esp, 8
test eax, eax
jne 0x5051e0
mov dword [esp + 0x48], 0x3f
mov ecx, 0x1fb
jmp 0x505d63
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x505220
push dword [esp + 0x70]
call fcn.004cc220
mov dword [esi + 0xa8], eax
push dword [esp + 0x3c]
call fcn.004c8010
add esp, 8
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
jmp 0x50522a
mov dword [esi + 0xa8], 3
mov eax, dword [esi + 0x9c]
lea edi, [esi + 0x9c]
test eax, eax
je 0x505249
push eax
call fcn.004d0f20
add esp, 4
mov dword [edi], 0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
test ecx, ecx
je 0x505325
cmp byte [edx], 0xa3
jne 0x505325
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x64], edx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004cb570
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x50529b
mov dword [esp + 0x48], 0x3b
mov ecx, 0x208
jmp 0x505d63
cmp ebx, 0x21
jne 0x5052b7
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x5052bb
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
push edi
call fcn.004d0f70
add esp, 0xc
test eax, eax
jne 0x5052d8
mov ecx, 0x208
jmp 0x505d63
cmp ebx, 0x21
jne 0x505311
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004cb540
add esp, 8
test eax, eax
jne 0x505311
mov dword [esp + 0x48], 0x3f
mov ecx, 0x208
jmp 0x505d63
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
sub eax, edx
mov ecx, dword [esp + 0x58]
add ecx, eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test ecx, ecx
je 0x505459
cmp byte [edx], 0xa4
jne 0x505459
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x64], edx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004cb570
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x50537f
mov dword [esp + 0x48], 0x3b
mov ecx, 0x20c
jmp 0x505d63
cmp ebx, 0x21
jne 0x50539b
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x50539f
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004e9160
add esp, 0xc
test eax, eax
jne 0x5053c0
mov ecx, 0x20c
jmp 0x505d63
cmp ebx, 0x21
jne 0x5053f9
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004cb540
add esp, 8
test eax, eax
jne 0x5053f9
mov dword [esp + 0x48], 0x3f
mov ecx, 0x20c
jmp 0x505d63
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x28], 0
je 0x505459
mov eax, dword [esp + 0x20]
cmp eax, 0x20
jle 0x505427
mov dword [esp + 0x48], 0x10f
mov ecx, 0x211
jmp 0x505d63
mov dword [esi + 0x68], eax
lea eax, [esi + 0x6c]
push dword [esp + 0x20]
push dword [esp + 0x2c]
push eax
call fcn.00594b00
push dword [esp + 0x34]
call fcn.004c8010
add esp, 0x10
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
jmp 0x505460
mov dword [esi + 0x68], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], 0
test eax, eax
je 0x505540
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa5
jne 0x505540
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004cb570
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x5054ba
mov dword [esp + 0x48], 0x3b
mov ecx, 0x21e
jmp 0x505d63
cmp ebx, 0x21
jne 0x5054d6
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x5054da
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004e9140
add esp, 0xc
test eax, eax
jne 0x5054fb
mov ecx, 0x21e
jmp 0x505d63
cmp ebx, 0x21
jne 0x505534
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004cb540
add esp, 8
test eax, eax
jne 0x505534
mov dword [esp + 0x48], 0x3f
mov ecx, 0x21e
jmp 0x505d63
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x505574
push dword [esp + 0x70]
call fcn.004cc220
mov dword [esi + 0xa0], eax
push dword [esp + 0x3c]
call fcn.004c8010
add esp, 8
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
jmp 0x50557e
mov dword [esi + 0xa0], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x50568c
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa6
jne 0x50568c
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004cb570
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x5055e0
mov dword [esp + 0x48], 0x3b
mov ecx, 0x22a
jmp 0x505d63
cmp ebx, 0x21
jne 0x5055fc
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x505600
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004e9160
add esp, 0xc
test eax, eax
jne 0x505621
mov ecx, 0x22a
jmp 0x505d63
cmp ebx, 0x21
jne 0x50565a
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004cb540
add esp, 8
test eax, eax
jne 0x50565a
mov dword [esp + 0x48], 0x3f
mov ecx, 0x22a
jmp 0x505d63
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x50568c
push dword [esp + 0x20]
push eax
call fcn.004f7810
mov dword [esi + 0xd0], eax
push dword [esp + 0x30]
call fcn.004c8010
add esp, 0xc
jmp 0x505696
mov dword [esi + 0xd0], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x5057a4
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa7
jne 0x5057a4
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004cb570
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x5056f8
mov dword [esp + 0x48], 0x3b
mov ecx, 0x237
jmp 0x505d63
cmp ebx, 0x21
jne 0x505714
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x505718
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004e9160
add esp, 0xc
test eax, eax
jne 0x505739
mov ecx, 0x237
jmp 0x505d63
cmp ebx, 0x21
jne 0x505772
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004cb540
add esp, 8
test eax, eax
jne 0x505772
mov dword [esp + 0x48], 0x3f
mov ecx, 0x237
jmp 0x505d63
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5057a4
push dword [esp + 0x20]
push eax
call fcn.004f7810
mov dword [esi + 0x8c], eax
push dword [esp + 0x30]
call fcn.004c8010
add esp, 0xc
jmp 0x5057ae
mov dword [esi + 0x8c], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x5058cc
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa8
jne 0x5058cc
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004cb570
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x505810
mov dword [esp + 0x48], 0x3b
mov ecx, 0x242
jmp 0x505d63
cmp ebx, 0x21
jne 0x50582c
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x505830
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004e9160
add esp, 0xc
test eax, eax
jne 0x505851
mov ecx, 0x242
jmp 0x505d63
cmp ebx, 0x21
jne 0x50588a
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004cb540
add esp, 8
test eax, eax
jne 0x50588a
mov dword [esp + 0x48], 0x3f
mov ecx, 0x242
jmp 0x505d63
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5058cc
push dword [esp + 0x20]
push eax
call fcn.004f7810
mov dword [esi + 0x90], eax
push dword [esp + 0x30]
call fcn.004c8010
add esp, 0xc
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
jmp 0x5058d6
mov dword [esi + 0x90], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], 0
test eax, eax
je 0x5059b6
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa9
jne 0x5059b6
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004cb570
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x505930
mov dword [esp + 0x48], 0x3b
mov ecx, 0x24e
jmp 0x505d63
cmp ebx, 0x21
jne 0x50594c
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x505950
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004e9140
add esp, 0xc
test eax, eax
jne 0x505971
mov ecx, 0x24e
jmp 0x505d63
cmp ebx, 0x21
jne 0x5059aa
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004cb540
add esp, 8
test eax, eax
jne 0x5059aa
mov dword [esp + 0x48], 0x3f
mov ecx, 0x24e
jmp 0x505d63
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x5059ea
push dword [esp + 0x70]
call fcn.004cc220
mov dword [esi + 0xec], eax
push dword [esp + 0x3c]
call fcn.004c8010
add esp, 8
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
jmp 0x505a0f
cmp dword [esi + 0xe8], 0
je 0x505a05
cmp dword [esi + 0x44], 0
je 0x505a05
mov dword [esi + 0xec], 0xffffffff
jmp 0x505a0f
mov dword [esi + 0xec], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x505b11
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xaa
jne 0x505b11
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004cb570
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x505a71
mov dword [esp + 0x48], 0x3b
mov ecx, 0x25a
jmp 0x505d63
cmp ebx, 0x21
jne 0x505a8d
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x505a91
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004e9160
add esp, 0xc
test eax, eax
jne 0x505ab2
mov ecx, 0x25a
jmp 0x505d63
cmp ebx, 0x21
jne 0x505aeb
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004cb540
add esp, 8
test eax, eax
jne 0x505aeb
mov dword [esp + 0x48], 0x3f
mov ecx, 0x25a
jmp 0x505d63
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x505b11
mov dword [esi + 0xe4], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0xe8], eax
jmp 0x505b1b
mov dword [esi + 0xe4], 0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test ecx, ecx
je 0x505c30
cmp byte [edx], 0xab
jne 0x505c30
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x64], edx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004cb570
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x505b7d
mov dword [esp + 0x48], 0x3b
mov ecx, 0x266
jmp 0x505d63
cmp ebx, 0x21
jne 0x505b99
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x505b9d
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004e9160
add esp, 0xc
test eax, eax
jne 0x505bbe
mov ecx, 0x266
jmp 0x505d63
cmp ebx, 0x21
jne 0x505bf7
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004cb540
add esp, 8
test eax, eax
jne 0x505bf7
mov dword [esp + 0x48], 0x3f
mov ecx, 0x266
jmp 0x505d63
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
sub eax, edx
mov ecx, dword [esp + 0x58]
add ecx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x58], ecx
test eax, eax
je 0x505c30
movzx eax, byte [eax]
mov dword [esi + 0xb0], eax
push dword [esp + 0x28]
call fcn.004c8010
mov ecx, dword [esp + 0x5c]
add esp, 4
mov edx, dword [esp + 0x40]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test ecx, ecx
je 0x505d43
cmp byte [edx], 0xac
jne 0x505d43
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x64], edx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004cb570
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x505c8a
mov dword [esp + 0x48], 0x3b
mov ecx, 0x271
jmp 0x505d63
cmp ebx, 0x21
jne 0x505ca6
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x505caa
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004e9160
add esp, 0xc
test eax, eax
jne 0x505ccb
mov ecx, 0x271
jmp 0x505d63
cmp ebx, 0x21
jne 0x505d01
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004cb540
add esp, 8
test eax, eax
jne 0x505d01
mov dword [esp + 0x48], 0x3f
mov ecx, 0x271
jmp 0x505d63
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x505d43
push dword [esp + 0x20]
push eax
call fcn.004f7810
mov dword [esi + 0xf0], eax
push dword [esp + 0x30]
call fcn.004c8010
add esp, 0xc
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
jmp 0x505d4d
mov dword [esi + 0xf0], 0
lea eax, [esp + 0x40]
push eax
call fcn.004cb940
add esp, 4
test eax, eax
jne 0x505db3
mov ecx, 0x27b
mov dword [esp + 0x68], ecx
push ecx
push str.._ssl_ssl_asn1.c
push dword [esp + 0x50]
push 0x67
push 0xd
call fcn.004e1680
mov eax, dword [esp + 0x88]
mov ecx, dword [eax]
mov eax, dword [esp + 0x74]
sub eax, ecx
push eax
push ecx
call fcn.004cb8d0
add esp, 0x1c
test esi, esi
je 0x505da9
test ebp, ebp
je 0x505da0
cmp dword [ebp], esi
je 0x505da9
push esi
call fcn.004d7f60
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x40]
mov dword [ecx], eax
test ebp, ebp
je 0x505dc4
mov dword [ebp], esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret