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

Disassembly:
mov eax, 0x158
call fcn.0053f970
mov eax, dword [0x600f80]
xor eax, esp
mov dword [esp + 0x154], eax
push ebp
push edi
mov edi, dword [esp + 0x164]
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0
push dword [edi + 0x108]
mov eax, dword [edi + 8]
push 0xffffffffffffffff
push 0x1141
push 0x1140
mov eax, dword [eax + 0x30]
push edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x3c], 0
call eax
add esp, 0x18
mov ebp, eax
cmp dword [esp + 0x54], 0
je 0x51f618
mov eax, dword [edi + 0x58]
cmp dword [eax + 0x340], 0xc
je 0x51e98f
mov eax, dword [eax + 0x344]
test dword [eax + 0xc], 0x100
je 0x51e966
call fcn.00534a10
mov ecx, dword [edi + 0xc0]
mov dword [ecx + 0x98], eax
mov eax, dword [edi + 0xe4]
mov eax, dword [eax + 0x14c]
test eax, eax
je 0x51e956
push eax
call fcn.004ad160
add esp, 4
mov eax, dword [edi + 0xe4]
mov dword [eax + 0x14c], 0
mov eax, dword [edi + 0x58]
pop edi
pop ebp
mov dword [eax + 0x354], 1
mov eax, 1
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.0053cd12
add esp, 0x158
ret
mov eax, dword [edi + 0xc0]
push esi
mov esi, dword [edi + 0x40]
mov dword [esp + 0x34], esi
mov eax, dword [eax + 0x98]
test eax, eax
je 0x51ea2e
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x51e9ce
push eax
call fcn.004b5790
mov eax, dword [edi + 0xc0]
add esp, 4
mov eax, dword [eax + 0x98]
mov dword [eax + 0x6c], 0
mov eax, dword [edi + 0xc0]
mov eax, dword [eax + 0x98]
mov eax, dword [eax + 0x70]
test eax, eax
je 0x51e9fd
push eax
call fcn.004bcb50
mov eax, dword [edi + 0xc0]
add esp, 4
mov eax, dword [eax + 0x98]
mov dword [eax + 0x70], 0
mov eax, dword [edi + 0xc0]
mov eax, dword [eax + 0x98]
mov eax, dword [eax + 0x74]
test eax, eax
je 0x51ea3f
push eax
call fcn.004b3a40
mov eax, dword [edi + 0xc0]
add esp, 4
mov eax, dword [eax + 0x98]
mov dword [eax + 0x74], 0
jmp 0x51ea3f
call fcn.00534a10
mov ecx, dword [edi + 0xc0]
mov dword [ecx + 0x98], eax
mov eax, dword [edi + 0x58]
push ebx
mov eax, dword [eax + 0x344]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x44]
push eax
call fcn.004b38a0
mov eax, ebx
add esp, 4
and eax, 0x100
mov dword [esp + 0x1c], eax
je 0x51eb83
movzx ecx, byte [esi]
mov ebx, 0x28
movzx eax, byte [esi + 1]
add esi, 2
shl ecx, 8
or ecx, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], ecx
lea eax, [ecx + 2]
mov dword [esp + 0x28], eax
cmp ecx, 0x80
jle 0x51eab0
push 0x554
push str.._ssl_s3_clnt.c
push 0x92
jmp 0x51f597
cmp eax, ebp
jle 0x51eacd
push 0x55b
push str.._ssl_s3_clnt.c
mov ebx, 0x32
push 0x13c
jmp 0x51f597
push ecx
lea eax, [esp + 0x64]
push esi
push eax
call fcn.005406f0
mov eax, 0x81
sub eax, dword [esp + 0x44]
push eax
lea eax, [esp + 0x70]
add eax, dword [esp + 0x48]
push 0
push eax
call fcn.00540250
mov eax, dword [edi + 0xe4]
add esp, 0x18
mov eax, dword [eax + 0x14c]
test eax, eax
je 0x51eb0f
push eax
call fcn.004ad160
add esp, 4
lea eax, [esp + 0x60]
push eax
call fcn.004ad400
mov ecx, dword [edi + 0xe4]
add esp, 4
mov dword [ecx + 0x14c], eax
mov eax, dword [edi + 0xe4]
cmp dword [eax + 0x14c], 0
jne 0x51eb48
push 0x569
push str.._ssl_s3_clnt.c
push 0x41
jmp 0x51f597
sub ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
test byte [esp + 0x30], 4
jne 0x51f549
test eax, eax
jne 0x51f549
push 0x71e
push str.._ssl_s3_clnt.c
push 0x44
push 0x8d
push 0x14
call fcn.004a91e0
add esp, 0x14
jmp 0x51f5b2
test ebx, 0x400
je 0x51ed53
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
add esi, 2
shl ecx, 8
or ecx, eax
mov dword [esp + 0x10], ecx
lea ebx, [ecx + 2]
cmp ebx, ebp
jle 0x51ebc2
push 0x57a
push str.._ssl_s3_clnt.c
mov ebx, 0x32
push 0x15e
jmp 0x51f597
push 0
push ecx
push esi
call fcn.004c0910
add esp, 0xc
mov dword [edi + 0x1a8], eax
test eax, eax
jne 0x51ebfa
push 0x57f
push str.._ssl_s3_clnt.c
push 3
push 0x8d
push 0x14
call fcn.004a91e0
add esp, 0x14
xor ebx, ebx
jmp 0x51f5b6
add esi, dword [esp + 0x10]
add ebx, 2
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
add esi, 2
shl ecx, 8
or ecx, eax
add ebx, ecx
mov dword [esp + 0x10], ecx
cmp ebx, ebp
jle 0x51ec33
push 0x589
push str.._ssl_s3_clnt.c
mov ebx, 0x32
push 0x15d
jmp 0x51f597
push 0
push ecx
push esi
call fcn.004c0910
add esp, 0xc
mov dword [edi + 0x1ac], eax
test eax, eax
jne 0x51ec50
push 0x58e
jmp 0x51ebdd
add esi, dword [esp + 0x10]
inc ebx
movzx eax, byte [esi]
inc esi
add ebx, eax
mov dword [esp + 0x10], eax
cmp ebx, ebp
jle 0x51ec7c
push 0x599
push str.._ssl_s3_clnt.c
mov ebx, 0x32
push 0x15f
jmp 0x51f597
push 0
push eax
push esi
call fcn.004c0910
add esp, 0xc
mov dword [edi + 0x1b0], eax
test eax, eax
jne 0x51ec9c
push 0x59e
jmp 0x51ebdd
add esi, dword [esp + 0x10]
add ebx, 2
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
add esi, 2
shl ecx, 8
or ecx, eax
add ebx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], ebx
cmp ebx, ebp
jle 0x51ecd9
push 0x5a8
push str.._ssl_s3_clnt.c
mov ebx, 0x32
push 0x15c
jmp 0x51f597
push 0
push ecx
push esi
call fcn.004c0910
add esp, 0xc
mov dword [edi + 0x1b4], eax
test eax, eax
jne 0x51ecf9
push 0x5ad
jmp 0x51ebdd
add esi, dword [esp + 0x10]
sub ebp, ebx
mov eax, dword [esp + 0x30]
test al, 1
je 0x51ed29
mov eax, dword [edi + 0xc0]
mov eax, dword [eax + 0x98]
push dword [eax + 0xc]
call fcn.004b7a10
mov edx, eax
add esp, 4
mov dword [esp + 0x14], edx
jmp 0x51f21a
test al, 2
je 0x51eb4c
mov eax, dword [edi + 0xc0]
mov eax, dword [eax + 0x98]
push dword [eax + 0x24]
call fcn.004b7a10
mov edx, eax
add esp, 4
mov dword [esp + 0x14], edx
jmp 0x51f21a
test bl, 1
je 0x51ee85
call fcn.004b58b0
mov edx, eax
mov dword [esp + 0x24], edx
test edx, edx
jne 0x51ed7c
push 0x5c7
push str.._ssl_s3_clnt.c
push 0x41
jmp 0x51ebe4
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
add esi, 2
shl ecx, 8
or ecx, eax
mov dword [esp + 0x10], ecx
lea ebx, [ecx + 2]
cmp ebx, ebp
jle 0x51edac
push 0x5cf
push str.._ssl_s3_clnt.c
mov ebx, 0x32
push 0x79
jmp 0x51f597
push dword [edx + 0x10]
push ecx
push esi
call fcn.004c0910
mov edx, dword [esp + 0x30]
add esp, 0xc
mov dword [edx + 0x10], eax
test eax, eax
jne 0x51edce
push 0x5d4
jmp 0x51ebdd
add esi, dword [esp + 0x10]
add ebx, 2
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
add esi, 2
shl ecx, 8
or ecx, eax
add ebx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], ebx
cmp ebx, ebp
jle 0x51ee08
push 0x5de
push str.._ssl_s3_clnt.c
mov ebx, 0x32
push 0x78
jmp 0x51f597
push dword [edx + 0x14]
push ecx
push esi
call fcn.004c0910
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x51ee2a
push 0x5e3
jmp 0x51ebdd
add esi, dword [esp + 0x10]
sub ebp, ebx
test byte [esp + 0x30], 1
je 0x51ee74
mov eax, dword [edi + 0xc0]
mov eax, dword [eax + 0x98]
push dword [eax + 0xc]
call fcn.004b7a10
mov ecx, dword [esp + 0x28]
mov edx, eax
mov eax, dword [edi + 0xc0]
add esp, 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], 0
mov eax, dword [eax + 0x98]
mov dword [eax + 0x6c], ecx
jmp 0x51f21a
push 0x5ee
push str.._ssl_s3_clnt.c
push 0x44
jmp 0x51ebe4
test bl, 8
je 0x51f045
call fcn.004bcc40
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x51eebd
push 0x5fd
push str.._ssl_s3_clnt.c
push 5
push 0x8d
push 0x14
call fcn.004a91e0
add esp, 0x14
jmp 0x51f5b6
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
add esi, 2
shl ecx, 8
or ecx, eax
mov dword [esp + 0x10], ecx
lea ebx, [ecx + 2]
cmp ebx, ebp
jle 0x51eeed
push 0x605
push str.._ssl_s3_clnt.c
mov ebx, 0x32
push 0x6e
jmp 0x51f597
push 0
push ecx
push esi
call fcn.004c0910
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov dword [ecx + 8], eax
test eax, eax
jne 0x51ef24
push 0x60a
push str.._ssl_s3_clnt.c
push 3
push 0x8d
push 0x14
call fcn.004a91e0
add esp, 0x14
jmp 0x51f5b2
add esi, dword [esp + 0x10]
add ebx, 2
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
add esi, 2
shl ecx, 8
or ecx, eax
add ebx, ecx
mov dword [esp + 0x10], ecx
cmp ebx, ebp
jle 0x51ef5a
push 0x614
push str.._ssl_s3_clnt.c
mov ebx, 0x32
push 0x6c
jmp 0x51f597
push 0
push ecx
push esi
call fcn.004c0910
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov dword [ecx + 0xc], eax
test eax, eax
jne 0x51ef78
push 0x619
jmp 0x51ef09
add esi, dword [esp + 0x10]
add ebx, 2
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
add esi, 2
shl ecx, 8
or ecx, eax
add ebx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], ebx
cmp ebx, ebp
jle 0x51efb2
push 0x623
push str.._ssl_s3_clnt.c
mov ebx, 0x32
push 0x6d
jmp 0x51f597
push 0
push ecx
push esi
call fcn.004c0910
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [edx + 0x14], eax
test eax, eax
jne 0x51efd3
push 0x628
jmp 0x51ef09
add esi, dword [esp + 0x10]
sub ebp, ebx
mov eax, dword [esp + 0x30]
test al, 1
je 0x51f000
mov eax, dword [edi + 0xc0]
mov eax, dword [eax + 0x98]
push dword [eax + 0xc]
call fcn.004b7a10
mov edx, eax
add esp, 4
mov dword [esp + 0x14], edx
jmp 0x51f025
test al, 2
je 0x51f023
mov eax, dword [edi + 0xc0]
mov eax, dword [eax + 0x98]
push dword [eax + 0x24]
call fcn.004b7a10
mov edx, eax
add esp, 4
mov dword [esp + 0x14], edx
jmp 0x51f025
xor edx, edx
mov eax, dword [edi + 0xc0]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], 0
mov eax, dword [eax + 0x98]
mov dword [eax + 0x70], ecx
jmp 0x51f21a
test bl, 6
jne 0x51f583
test bl, bl
jns 0x51f52b
call fcn.004b3ca0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x51f074
push 0x64e
push str.._ssl_s3_clnt.c
push 0x41
jmp 0x51ebe4
cmp ebp, 3
jl 0x51f515
cmp byte [esi], 3
jne 0x51f515
movzx eax, byte [esi + 2]
push eax
call fcn.00532220
add esp, 4
test eax, eax
je 0x51f515
push eax
call fcn.004cd4f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x51f0bb
push 0x668
push str.._ssl_s3_clnt.c
push 0x10
jmp 0x51ebe4
mov ecx, dword [esp + 0x20]
push ebx
push ecx
call fcn.004b3d20
add esp, 8
test eax, eax
jne 0x51f0de
push 0x66d
push str.._ssl_s3_clnt.c
push 0x10
jmp 0x51ebe4
push ebx
call fcn.004cc7f0
push dword [esp + 0x24]
call fcn.004ccc90
mov ecx, dword [edi + 0x58]
add esp, 8
mov ebx, eax
mov dword [esp + 0x40], ebx
mov ecx, dword [ecx + 0x344]
test byte [ecx + 0x20], 2
je 0x51f12e
push ebx
call fcn.004cc930
add esp, 4
cmp eax, 0xa3
jle 0x51f12e
push 0x678
push str.._ssl_s3_clnt.c
mov ebx, 0x3c
push 0x136
jmp 0x51f597
push ebx
call fcn.004cd210
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
je 0x51f504
call fcn.004cbb20
mov ecx, eax
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x51f504
movzx eax, byte [esi + 3]
add esi, 4
mov dword [esp + 0x3c], eax
lea ebx, [eax + 4]
mov dword [esp + 0x28], ebx
cmp ebx, ebp
jg 0x51f4eb
push ecx
push eax
push esi
push dword [esp + 0x38]
push dword [esp + 0x50]
call fcn.004cdf00
add esp, 0x14
test eax, eax
je 0x51f4eb
add esi, dword [esp + 0x3c]
sub ebp, ebx
mov eax, dword [esp + 0x30]
test al, 1
je 0x51f1aa
mov eax, dword [edi + 0xc0]
mov eax, dword [eax + 0x98]
push dword [eax + 0xc]
jmp 0x51f1bd
test al, 0x40
je 0x51f1c9
mov eax, dword [edi + 0xc0]
mov eax, dword [eax + 0x98]
push dword [eax + 0x48]
call fcn.004b7a10
mov dword [esp + 0x18], eax
add esp, 4
push dword [esp + 0x2c]
push dword [esp + 0x24]
call fcn.004b3d80
mov eax, dword [edi + 0xc0]
mov ecx, dword [esp + 0x28]
push dword [esp + 0x3c]
mov dword [esp + 0x2c], 0
mov eax, dword [eax + 0x98]
mov dword [eax + 0x74], ecx
call fcn.004cba90
push dword [esp + 0x38]
mov dword [esp + 0x44], 0
call fcn.004ccf00
mov edx, dword [esp + 0x24]
add esp, 0x10
mov dword [esp + 0x2c], 0
test edx, edx
je 0x51eb4c
mov ecx, dword [edi]
mov eax, ecx
and eax, 0xffffff00
cmp eax, 0x300
jne 0x51f2cc
cmp ecx, 0x303
jl 0x51f2cc
push edx
call fcn.005321c0
mov ecx, eax
add esp, 4
cmp ecx, 0xffffffff
jne 0x51f272
push 0x6bf
push str.._ssl_s3_clnt.c
push 0x44
push 0x8d
push 0x14
call fcn.004a91e0
add esp, 0x14
jmp 0x51f5b2
movzx eax, byte [esi + 1]
cmp ecx, eax
je 0x51f29f
push 0x6c5
push str.._ssl_s3_clnt.c
push 0x172
push 0x8d
push 0x14
call fcn.004a91e0
mov ebx, 0x32
jmp 0x51f5a3
movzx eax, byte [esi]
push eax
call fcn.005320e0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x51f2c4
push 0x6cc
push str.._ssl_s3_clnt.c
push 0x170
jmp 0x51f289
add esi, 2
sub ebp, 2
jmp 0x51f2d5
call fcn.004c0730
mov dword [esp + 0x1c], eax
movzx ecx, byte [esi]
sub ebp, 2
movzx eax, byte [esi + 1]
add esi, 2
push dword [esp + 0x14]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], ebp
call fcn.004ac7f0
add esp, 4
cmp dword [esp + 0x10], ebp
jne 0x51f4d2
cmp ebp, eax
jg 0x51f4d2
test ebp, ebp
jle 0x51f4d2
mov eax, dword [esp + 0x14]
cmp dword [eax], 6
jne 0x51f458
mov ecx, dword [edi]
mov eax, ecx
and eax, 0xffffff00
cmp eax, 0x300
jne 0x51f342
cmp ecx, 0x303
jge 0x51f458
mov ebp, dword [esp + 0x28]
lea esi, [esp + 0xe4]
mov dword [esp + 0x1c], 0
mov ebx, 2
lea ebx, [ebx]
lea eax, [esp + 0x44]
push 8
push eax
call fcn.004c4130
mov eax, dword [edi + 0xe4]
add esp, 8
cmp ebx, 2
jne 0x51f382
mov eax, dword [eax + 0x8c]
jmp 0x51f388
mov eax, dword [eax + 0x90]
push 0
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004b3490
mov eax, dword [edi + 0x58]
add eax, 0xc0
push 0x20
push eax
lea eax, [esp + 0x58]
push eax
call fcn.004b3630
mov eax, dword [edi + 0x58]
add eax, 0xa0
push 0x20
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004b3630
push ebp
push dword [esp + 0x60]
lea eax, [esp + 0x70]
push eax
call fcn.004b3630
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x78]
push esi
push eax
call fcn.004b33f0
mov ecx, dword [esp + 0x58]
dec ebx
add ecx, dword [esp + 0x4c]
add esp, 0x3c
add esi, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
test ebx, ebx
jg 0x51f360
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
push dword [eax + 0x14]
lea eax, [esp + 0xe8]
push ebp
push esi
push ecx
push eax
push 0x72
call fcn.004e7ff0
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
jns 0x51f43c
push 0x6fe
push str.._ssl_s3_clnt.c
mov ebx, 0x33
push 0x76
jmp 0x51f597
jne 0x51f563
push 0x705
push str.._ssl_s3_clnt.c
mov ebx, 0x33
push 0x7b
jmp 0x51f597
push 0
push dword [esp + 0x20]
lea eax, [esp + 0x4c]
push eax
call fcn.004b3490
mov eax, dword [edi + 0x58]
add eax, 0xc0
push 0x20
push eax
lea eax, [esp + 0x58]
push eax
call fcn.004b3630
mov eax, dword [edi + 0x58]
add eax, 0xa0
push 0x20
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004b3630
push ebx
push dword [esp + 0x60]
lea eax, [esp + 0x70]
push eax
call fcn.004b3630
push dword [esp + 0x44]
lea eax, [esp + 0x78]
push ebp
push esi
push eax
call fcn.004d2180
add esp, 0x40
test eax, eax
jg 0x51f563
push 0x714
push str.._ssl_s3_clnt.c
mov ebx, 0x33
push 0x7b
jmp 0x51f597
push 0x6e1
push str.._ssl_s3_clnt.c
mov ebx, 0x32
push 0x108
jmp 0x51f597
push 0x68e
push str.._ssl_s3_clnt.c
mov ebx, 0x32
push 0x132
jmp 0x51f597
push 0x682
push str.._ssl_s3_clnt.c
push 0x41
jmp 0x51ebe4
push 0x661
push str.._ssl_s3_clnt.c
mov ebx, 0x50
push 0x13a
jmp 0x51f597
test ebx, ebx
je 0x51eb50
push 0x6ae
push str.._ssl_s3_clnt.c
mov ebx, 0xa
push 0xf4
jmp 0x51f597
test ebp, ebp
je 0x51f563
push 0x725
push str.._ssl_s3_clnt.c
mov ebx, 0x32
push 0x99
jmp 0x51f597
push dword [esp + 0x14]
call fcn.004ac690
lea eax, [esp + 0x48]
push eax
call fcn.004b3640
add esp, 8
mov eax, 1
jmp 0x51f616
push 0x641
push str.._ssl_s3_clnt.c
mov ebx, 0x2f
push 0xeb
push 0x8d
push 0x14
call fcn.004a91e0
add esp, 0x14
push ebx
push 2
push edi
call fcn.0052df00
add esp, 0xc
mov ebx, dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.004ac690
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
je 0x51f5d3
push eax
call fcn.004b5790
add esp, 4
test ebx, ebx
je 0x51f5e0
push ebx
call fcn.004bcb50
add esp, 4
push dword [esp + 0x34]
call fcn.004cba90
push dword [esp + 0x30]
call fcn.004ccf00
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x51f606
push eax
call fcn.004b3a40
add esp, 4
lea eax, [esp + 0x44]
push eax
call fcn.004b3640
add esp, 4
or eax, 0xffffffff
pop ebx
pop esi
mov ecx, dword [esp + 0x15c]
pop edi
pop ebp
xor ecx, esp
call fcn.0053cd12
add esp, 0x158
ret