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

Disassembly:
mov eax, 0x60
call fcn.004a72f0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
mov eax, dword [esi]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x70]
xor ebx, ebx
push edi
mov dword [esp + 0x68], esi
mov dword [esp + 0x4c], 0x3a
cmp eax, ebx
je 0x51d89a
mov eax, dword [eax]
cmp eax, ebx
je 0x51d89a
mov ebp, eax
mov eax, dword [esi]
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x24]
mov dword [esp + 0x14], edx
mov dword [esp + 0x44], eax
cmp ecx, ebx
jne 0x51d8b2
mov dword [esp + 0x60], ebx
jmp 0x51d8b8
call fcn.0050f570
mov ebp, eax
cmp ebp, ebx
jne 0x51d876
mov dword [esp + 0x6c], 0x130
jmp 0x51e5fc
add eax, ecx
mov dword [esp + 0x60], eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.004c3e80
add esp, 8
test eax, eax
jne 0x51d8db
mov dword [esp + 0x6c], 0x136
jmp 0x51e5fc
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x5c]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x68], edx
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x40], ebx
call fcn.004cd990
add esp, 0xc
test eax, eax
jne 0x51d913
mov dword [esp + 0x6c], 0x139
jmp 0x51e5fc
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x44]
add dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x51d938
push eax
call fcn.004c2190
add esp, 4
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x5c]
push edx
lea eax, [esp + 0x48]
mov dword [esp + 0x68], ecx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004cd990
add esp, 0xc
test eax, eax
jne 0x51d968
mov dword [esp + 0x6c], 0x13d
jmp 0x51e5fc
mov edx, dword [esp + 0x64]
sub edx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
add dword [esp + 0x5c], edx
push eax
call fcn.004cd4a0
mov esi, eax
mov dword [ebp], esi
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, ebx
je 0x51d99f
push eax
call fcn.004c2190
add esp, 4
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x5c]
push edx
lea eax, [esp + 0x48]
mov dword [esp + 0x68], ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebx
call fcn.004cda60
add esp, 0xc
test eax, eax
jne 0x51d9d7
mov dword [esp + 0x6c], 0x143
jmp 0x51e5fc
mov edx, dword [esp + 0x64]
sub edx, dword [esp + 0x44]
mov edi, 3
add dword [esp + 0x5c], edx
cmp esi, 2
jne 0x51da20
cmp dword [esp + 0x24], edi
je 0x51da00
mov dword [esp + 0x4c], 0x89
jmp 0x51e5fc
mov ecx, dword [esp + 0x2c]
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
movzx ecx, byte [ecx + 2]
or eax, 0x200
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
jmp 0x51da5b
and esi, 0xffffff00
cmp esi, 0x300
jl 0x51e5f4
cmp dword [esp + 0x24], 2
je 0x51da46
mov dword [esp + 0x4c], 0x89
jmp 0x51e5fc
mov ecx, dword [esp + 0x2c]
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
or eax, 0x30000
shl eax, 8
or eax, edx
mov dword [ebp + 0xb0], eax
mov dword [ebp + 0xac], ebx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x5c]
push ecx
lea edx, [esp + 0x48]
mov dword [esp + 0x68], eax
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004cda60
add esp, 0xc
test eax, eax
jne 0x51da97
mov dword [esp + 0x6c], 0x164
jmp 0x51e5fc
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x24]
add dword [esp + 0x5c], ecx
cmp eax, 0x20
jle 0x51dab5
mov eax, 0x20
mov dword [esp + 0x24], eax
mov dword [ebp + 0x44], eax
cmp dword [esp + 0x24], 0x20
jle 0x51dad6
push str.os.length____int_sizeof_ret__session_id_
push 0x170
push str.._ssl_ssl_asn1.c
call fcn.004c7730
add esp, 0xc
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
push edx
push eax
lea ecx, [ebp + 0x48]
push ecx
call fcn.004a5720
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x68]
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x74], edx
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.004cda60
add esp, 0x18
test eax, eax
jne 0x51db19
mov dword [esp + 0x6c], 0x173
jmp 0x51e5fc
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x44]
add dword [esp + 0x5c], eax
mov eax, dword [esp + 0x24]
cmp eax, 0x30
jle 0x51db37
mov dword [ebp + 0x10], 0x30
jmp 0x51db3a
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x2c]
push ecx
push edx
lea eax, [ebp + 0x14]
push eax
call fcn.004a5720
xor eax, eax
add esp, 0xc
mov dword [esp + 0x24], eax
cmp dword [esp + 0x5c], ebx
je 0x51dbce
mov esi, dword [esp + 0x44]
mov bl, byte [esi]
movzx ecx, bl
and cl, 0xdf
cmp cl, 0x80
jne 0x51dbce
mov dl, bl
and dl, 0x20
or dl, 4
mov byte [esi], dl
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x5c]
push ecx
lea edx, [esp + 0x48]
mov dword [esp + 0x68], eax
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004cda60
add esp, 0xc
test eax, eax
jne 0x51dbac
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x6c], 0x18e
mov byte [ecx], bl
jmp 0x51e5fc
mov eax, dword [esp + 0x64]
mov edx, eax
sub edx, dword [esp + 0x44]
add dword [esp + 0x5c], edx
mov byte [eax], bl
mov eax, dword [esp + 0x24]
cmp eax, 8
jle 0x51dbce
mov dword [ebp + 4], 8
jmp 0x51dbd1
mov dword [ebp + 4], eax
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea edx, [ebp + 8]
push edx
call fcn.004a5720
mov eax, dword [esp + 0x38]
xor esi, esi
add esp, 0xc
cmp eax, esi
je 0x51dbf9
push eax
call fcn.004c2190
add esp, 4
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x34], esi
cmp eax, esi
je 0x51dcdb
mov ecx, dword [esp + 0x44]
cmp byte [ecx], 0xa1
jne 0x51dcdb
push eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004c3c90
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x51dc52
mov dword [esp + 0x4c], 0x3b
mov dword [esp + 0x6c], 0x197
jmp 0x51e5fc
cmp ebx, 0x21
jne 0x51dc6b
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x64]
lea eax, [ecx + edx - 2]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004cd990
add esp, 0xc
test eax, eax
jne 0x51dc93
mov dword [esp + 0x6c], 0x197
jmp 0x51e5fc
cmp ebx, 0x21
jne 0x51dccf
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x44]
lea ecx, [esp + 0x44]
add eax, dword [esp + 0x64]
push eax
push ecx
mov dword [esp + 0x20], eax
call fcn.004c38c0
add esp, 8
test eax, eax
jne 0x51dccf
mov dword [esp + 0x4c], 0x3f
mov dword [esp + 0x6c], 0x197
jmp 0x51e5fc
mov edx, dword [esp + 0x64]
sub edx, dword [esp + 0x44]
add dword [esp + 0x5c], edx
cmp dword [esp + 0x3c], esi
je 0x51dd04
mov eax, dword [esp + 0x10]
push eax
call fcn.004cd4a0
mov dword [ebp + 0xa4], eax
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004c2190
add esp, 8
mov dword [esp + 0x3c], esi
jmp 0x51dd13
push esi
call fcn.0049dc3d
add esp, 4
mov dword [ebp + 0xa4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x34], esi
cmp eax, esi
je 0x51ddf5
mov ecx, dword [esp + 0x44]
cmp byte [ecx], 0xa2
jne 0x51ddf5
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
mov dword [esp + 0x6c], ecx
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.004c3c90
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x51dd6c
mov dword [esp + 0x4c], 0x3b
mov dword [esp + 0x6c], 0x1a1
jmp 0x51e5fc
cmp ebx, 0x21
jne 0x51dd85
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x64]
lea edx, [eax + ecx - 2]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004cd990
add esp, 0xc
test eax, eax
jne 0x51ddad
mov dword [esp + 0x6c], 0x1a1
jmp 0x51e5fc
cmp ebx, 0x21
jne 0x51dde9
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x44]
add eax, dword [esp + 0x64]
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x48]
push eax
call fcn.004c38c0
add esp, 8
test eax, eax
jne 0x51dde9
mov dword [esp + 0x4c], 0x3f
mov dword [esp + 0x6c], 0x1a1
jmp 0x51e5fc
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x44]
add dword [esp + 0x5c], ecx
cmp dword [esp + 0x3c], esi
je 0x51de22
mov edx, dword [esp + 0x10]
push edx
call fcn.004cd4a0
mov dword [ebp + 0xa0], eax
mov eax, dword [esp + 0x40]
push eax
call fcn.004c2190
add esp, 8
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], esi
jmp 0x51de28
mov dword [ebp + 0xa0], edi
mov eax, dword [ebp + 0x94]
lea esi, [ebp + 0x94]
xor edi, edi
cmp eax, edi
je 0x51de45
push eax
call fcn.004c30a0
add esp, 4
mov dword [esi], edi
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x44]
cmp eax, edi
je 0x51df27
cmp byte [ecx], 0xa3
jne 0x51df27
push eax
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.004c3c90
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x51de9a
mov dword [esp + 0x4c], 0x3b
mov dword [esp + 0x6c], 0x1af
jmp 0x51e5fc
cmp ebx, 0x21
jne 0x51deb3
mov edx, dword [esp + 0x5c]
sub edx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
lea ecx, [edx + eax - 2]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x48]
push eax
push esi
call fcn.004c3050
add esp, 0xc
test eax, eax
jne 0x51ded7
mov dword [esp + 0x6c], 0x1af
jmp 0x51e5fc
cmp ebx, 0x21
jne 0x51df13
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x44]
lea ecx, [esp + 0x44]
add eax, dword [esp + 0x64]
push eax
push ecx
mov dword [esp + 0x20], eax
call fcn.004c38c0
add esp, 8
test eax, eax
jne 0x51df13
mov dword [esp + 0x4c], 0x3f
mov dword [esp + 0x6c], 0x1af
jmp 0x51e5fc
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x5c]
sub edx, ecx
add eax, edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
cmp eax, edi
je 0x51e04e
cmp byte [ecx], 0xa4
jne 0x51e04e
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004c3c90
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x51df7c
mov dword [esp + 0x4c], 0x3b
mov dword [esp + 0x6c], 0x1b3
jmp 0x51e5fc
cmp ebx, 0x21
jne 0x51df95
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x64]
lea eax, [ecx + edx - 2]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004cda60
add esp, 0xc
test eax, eax
jne 0x51dfbd
mov dword [esp + 0x6c], 0x1b3
jmp 0x51e5fc
cmp ebx, 0x21
jne 0x51dff9
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x44]
lea ecx, [esp + 0x44]
add eax, dword [esp + 0x64]
push eax
push ecx
mov dword [esp + 0x20], eax
call fcn.004c38c0
add esp, 8
test eax, eax
jne 0x51dff9
mov dword [esp + 0x4c], 0x3f
mov dword [esp + 0x6c], 0x1b3
jmp 0x51e5fc
mov edx, dword [esp + 0x64]
sub edx, dword [esp + 0x44]
add dword [esp + 0x5c], edx
cmp dword [esp + 0x2c], edi
je 0x51e04e
mov eax, dword [esp + 0x24]
cmp eax, 0x20
jle 0x51e021
mov dword [esp + 0x4c], 0x10f
jmp 0x51e5fc
mov dword [ebp + 0x68], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea edx, [ebp + 0x6c]
push edx
call fcn.004a5720
mov eax, dword [esp + 0x38]
push eax
call fcn.004c2190
add esp, 0x10
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
jmp 0x51e051
mov dword [ebp + 0x68], edi
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x34], edi
cmp eax, edi
je 0x51e133
mov ecx, dword [esp + 0x44]
cmp byte [ecx], 0xa5
jne 0x51e133
push eax
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.004c3c90
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x51e0aa
mov dword [esp + 0x4c], 0x3b
mov dword [esp + 0x6c], 0x1c7
jmp 0x51e5fc
cmp ebx, 0x21
jne 0x51e0c3
mov edx, dword [esp + 0x5c]
sub edx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
lea ecx, [edx + eax - 2]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004cd990
add esp, 0xc
test eax, eax
jne 0x51e0eb
mov dword [esp + 0x6c], 0x1c7
jmp 0x51e5fc
cmp ebx, 0x21
jne 0x51e127
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x44]
lea edx, [esp + 0x44]
add eax, dword [esp + 0x64]
push eax
push edx
mov dword [esp + 0x20], eax
call fcn.004c38c0
add esp, 8
test eax, eax
jne 0x51e127
mov dword [esp + 0x4c], 0x3f
mov dword [esp + 0x6c], 0x1c7
jmp 0x51e5fc
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x44]
add dword [esp + 0x5c], eax
cmp dword [esp + 0x3c], edi
je 0x51e160
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004cd4a0
mov dword [ebp + 0x98], eax
mov edx, dword [esp + 0x40]
push edx
call fcn.004c2190
add esp, 8
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], edi
jmp 0x51e166
mov dword [ebp + 0x98], edi
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
cmp eax, edi
je 0x51e27c
mov ecx, dword [esp + 0x44]
cmp byte [ecx], 0xa6
jne 0x51e27c
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004c3c90
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x51e1c3
mov dword [esp + 0x4c], 0x3b
mov dword [esp + 0x6c], 0x1d3
jmp 0x51e5fc
cmp ebx, 0x21
jne 0x51e1dc
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x64]
lea eax, [ecx + edx - 2]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004cda60
add esp, 0xc
test eax, eax
jne 0x51e204
mov dword [esp + 0x6c], 0x1d3
jmp 0x51e5fc
cmp ebx, 0x21
jne 0x51e240
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x44]
lea ecx, [esp + 0x44]
add eax, dword [esp + 0x64]
push eax
push ecx
mov dword [esp + 0x20], eax
call fcn.004c38c0
add esp, 8
test eax, eax
jne 0x51e240
mov dword [esp + 0x4c], 0x3f
mov dword [esp + 0x6c], 0x1d3
jmp 0x51e5fc
mov edx, dword [esp + 0x64]
sub edx, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x5c], edx
cmp eax, edi
je 0x51e27c
mov ecx, dword [esp + 0x24]
push ecx
push eax
call fcn.004d1760
mov dword [ebp + 0xc8], eax
mov edx, dword [esp + 0x34]
push edx
call fcn.004c2190
add esp, 0xc
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
jmp 0x51e282
mov dword [ebp + 0xc8], edi
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x34], edi
cmp eax, edi
je 0x51e364
mov ecx, dword [esp + 0x44]
cmp byte [ecx], 0xa9
jne 0x51e364
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004c3c90
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x51e2db
mov dword [esp + 0x4c], 0x3b
mov dword [esp + 0x6c], 0x1de
jmp 0x51e5fc
cmp ebx, 0x21
jne 0x51e2f4
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x64]
lea eax, [ecx + edx - 2]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004cd990
add esp, 0xc
test eax, eax
jne 0x51e31c
mov dword [esp + 0x6c], 0x1de
jmp 0x51e5fc
cmp ebx, 0x21
jne 0x51e358
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x44]
lea ecx, [esp + 0x44]
add eax, dword [esp + 0x64]
push eax
push ecx
mov dword [esp + 0x20], eax
call fcn.004c38c0
add esp, 8
test eax, eax
jne 0x51e358
mov dword [esp + 0x4c], 0x3f
mov dword [esp + 0x6c], 0x1de
jmp 0x51e5fc
mov edx, dword [esp + 0x64]
sub edx, dword [esp + 0x44]
add dword [esp + 0x5c], edx
cmp dword [esp + 0x3c], edi
je 0x51e391
mov eax, dword [esp + 0x10]
push eax
call fcn.004cd4a0
mov dword [ebp + 0xd4], eax
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004c2190
add esp, 8
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], edi
jmp 0x51e3b0
cmp dword [ebp + 0xd0], edi
je 0x51e3aa
cmp dword [ebp + 0x44], edi
je 0x51e3aa
mov dword [ebp + 0xd4], 0xffffffff
jmp 0x51e3b0
mov dword [ebp + 0xd4], edi
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
cmp eax, edi
je 0x51e4b0
mov ecx, dword [esp + 0x44]
cmp byte [ecx], 0xaa
jne 0x51e4b0
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
mov dword [esp + 0x6c], ecx
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.004c3c90
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x51e40d
mov dword [esp + 0x4c], 0x3b
mov dword [esp + 0x6c], 0x1ea
jmp 0x51e5fc
cmp ebx, 0x21
jne 0x51e426
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x64]
lea edx, [eax + ecx - 2]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004cda60
add esp, 0xc
test eax, eax
jne 0x51e44e
mov dword [esp + 0x6c], 0x1ea
jmp 0x51e5fc
cmp ebx, 0x21
jne 0x51e48a
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x44]
add eax, dword [esp + 0x64]
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x48]
push eax
call fcn.004c38c0
add esp, 8
test eax, eax
jne 0x51e48a
mov dword [esp + 0x4c], 0x3f
mov dword [esp + 0x6c], 0x1ea
jmp 0x51e5fc
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x5c], ecx
cmp eax, edi
je 0x51e4b0
mov dword [ebp + 0xcc], eax
mov edx, dword [esp + 0x24]
mov dword [ebp + 0xd0], edx
jmp 0x51e4b6
mov dword [ebp + 0xcc], edi
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
cmp eax, edi
je 0x51e5bb
mov ecx, dword [esp + 0x44]
cmp byte [ecx], 0xab
jne 0x51e5bb
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004c3c90
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x51e513
mov dword [esp + 0x4c], 0x3b
mov dword [esp + 0x6c], 0x1f8
jmp 0x51e5fc
cmp ebx, 0x21
jne 0x51e52c
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x64]
lea eax, [ecx + edx - 2]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004cda60
add esp, 0xc
test eax, eax
jne 0x51e554
mov dword [esp + 0x6c], 0x1f8
jmp 0x51e5fc
cmp ebx, 0x21
jne 0x51e58d
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x44]
lea ecx, [esp + 0x44]
add eax, dword [esp + 0x64]
push eax
push ecx
mov dword [esp + 0x20], eax
call fcn.004c38c0
add esp, 8
test eax, eax
jne 0x51e58d
mov dword [esp + 0x4c], 0x3f
mov dword [esp + 0x6c], 0x1f8
jmp 0x51e5fc
mov edx, dword [esp + 0x64]
sub edx, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x5c], edx
cmp eax, edi
je 0x51e5bb
movzx eax, byte [eax]
mov dword [ebp + 0xa8], eax
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004c2190
add esp, 4
mov dword [esp + 0x2c], edi
lea edx, [esp + 0x44]
push edx
call fcn.004c3a40
add esp, 4
test eax, eax
jne 0x51e5d6
mov dword [esp + 0x6c], 0x201
jmp 0x51e5fc
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x78]
mov dword [ecx], eax
mov eax, dword [esp + 0x74]
cmp eax, edi
je 0x51e5ea
mov dword [eax], ebp
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x60
ret
mov dword [esp + 0x4c], 0xfe
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x4c]
push edx
push str.._ssl_ssl_asn1.c
push eax
push 0x67
push 0xd
call fcn.004c0430
mov ecx, dword [esp + 0x8c]
mov eax, dword [ecx]
mov edx, dword [esp + 0x78]
sub edx, eax
push edx
push eax
call fcn.004c3c20
add esp, 0x1c
test ebp, ebp
je 0x51e646
mov eax, dword [esp + 0x74]
test eax, eax
je 0x51e63d
cmp dword [eax], ebp
je 0x51e646
push ebp
call fcn.0050f660
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret